fix ts error

This commit is contained in:
Pavel Mineev
2019-12-30 15:53:33 -06:00
committed by Umputun
parent 4352c86d1f
commit 25782d7d3e
@@ -106,7 +106,7 @@ export default class Dropdown extends Component<Props, State> {
__onClose() {
window.clearInterval(this.checkInterval);
if (this.storedDocumentHeightSet) {
document.body.style.minHeight = this.storedDocumentHeight;
document.body.style.minHeight = typeof this.storedDocumentHeight === 'string' ? this.storedDocumentHeight : '';
}
}