From 25782d7d3ee863f9b8c0cdfc91713982384e7dfc Mon Sep 17 00:00:00 2001 From: Pavel Mineev Date: Tue, 31 Dec 2019 00:02:25 +0300 Subject: [PATCH] fix ts error --- frontend/app/components/dropdown/dropdown.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/components/dropdown/dropdown.tsx b/frontend/app/components/dropdown/dropdown.tsx index 17872368..36406bc6 100644 --- a/frontend/app/components/dropdown/dropdown.tsx +++ b/frontend/app/components/dropdown/dropdown.tsx @@ -106,7 +106,7 @@ export default class Dropdown extends Component { __onClose() { window.clearInterval(this.checkInterval); if (this.storedDocumentHeightSet) { - document.body.style.minHeight = this.storedDocumentHeight; + document.body.style.minHeight = typeof this.storedDocumentHeight === 'string' ? this.storedDocumentHeight : ''; } }