From cbe0f74250371f8fcd8c12051b13e9897f698549 Mon Sep 17 00:00:00 2001 From: Vyacheslav Tumanov Date: Fri, 12 May 2023 11:42:02 +0500 Subject: [PATCH] TSK-1432: fix popup closing (#3170) Signed-off-by: Vyacheslav Tumanov --- .../hr-resources/src/components/schedule/MonthTableView.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hr-resources/src/components/schedule/MonthTableView.svelte b/plugins/hr-resources/src/components/schedule/MonthTableView.svelte index 438745a914..4603f63930 100644 --- a/plugins/hr-resources/src/components/schedule/MonthTableView.svelte +++ b/plugins/hr-resources/src/components/schedule/MonthTableView.svelte @@ -376,7 +376,7 @@ }, evt.target as HTMLElement, (res) => { - if (res !== undefined) { + if (res != null) { const filename = 'exportStaff' + new Date().toLocaleDateString() + '.csv' const link = document.createElement('a') link.style.display = 'none'