From d75ff8782405060a684dfec79b7054374767bef8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 30 Apr 2025 19:38:23 +0300 Subject: [PATCH] datepicker fix --- client/src/ui/app-init.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/ui/app-init.js b/client/src/ui/app-init.js index 14a6f6ccb1..aa6d382b9c 100644 --- a/client/src/ui/app-init.js +++ b/client/src/ui/app-init.js @@ -65,6 +65,10 @@ function uiAppInit() { /** @type {HTMLElement} */ const dropdownElement = $dropdown.get(0); + if (!dropdownElement) { + return; + } + const height = $dropdown.outerHeight(); const width = $dropdown.outerWidth();