From 3757150a287eb45702d81ced76ebb538f49f4a00 Mon Sep 17 00:00:00 2001 From: Fabian Kromer Date: Wed, 10 Jan 2024 10:06:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20minor=20bug=20fix=20which=20caus?= =?UTF-8?q?ed=20random=20UI=20issues=20on=20page=20navigation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- imports/ui/pages/track/tracktime.js | 4 ++-- package-lock.json | 8 ++++---- package.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/imports/ui/pages/track/tracktime.js b/imports/ui/pages/track/tracktime.js index 341b937..57447e6 100644 --- a/imports/ui/pages/track/tracktime.js +++ b/imports/ui/pages/track/tracktime.js @@ -44,7 +44,7 @@ Template.tracktime.onRendered(() => { } } if (!templateInstance.tinydatepicker - && weekDaysMin.get().length > 0 && months.get().length > 0) { + && weekDaysMin.get()?.length > 0 && months.get()?.length > 0) { templateInstance.tinydatepicker = TinyDatePicker(templateInstance.$('.js-date')[0], { format(date) { return date ? dayjs(date).format(getGlobalSetting('dateformatVerbose')) : dayjs().format(getGlobalSetting('dateformatVerbose')) @@ -142,7 +142,7 @@ Template.tracktime.onCreated(function tracktimeCreated() { }) }) Template.tracktime.onDestroyed(() => { - Template.instance().tinydatepicker.destroy() + Template.instance().tinydatepicker?.destroy() }) Template.tracktime.events({ 'click .js-save': (event, templateInstance) => { diff --git a/package-lock.json b/package-lock.json index 1f4a25c..fe1f223 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "titra", - "version": "0.96.0", + "version": "0.96.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -246,9 +246,9 @@ "dev": true }, "@babel/runtime": { - "version": "7.23.7", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.7.tgz", - "integrity": "sha512-w06OXVOFso7LcbzMiDGt+3X7Rh7Ho8MmgPoWU3rarH+8upf+wSU/grlGbWzQyr3DkdN6ZeuMFjpdwW0Q+HxobA==", + "version": "7.23.8", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.23.8.tgz", + "integrity": "sha512-Y7KbAP984rn1VGMbGqKmBLio9V7y5Je9GvU4rQPCPinCyNfUcToxIXl06d59URp/F3LwinvODxab5N/G6qggkw==", "requires": { "regenerator-runtime": "^0.14.0" } diff --git a/package.json b/package.json index 0eb6873..94356e9 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "titra", - "version": "0.96.1", + "version": "0.96.2", "private": true, "scripts": { "start": "meteor run" }, "dependencies": { - "@babel/runtime": "^7.23.7", + "@babel/runtime": "^7.23.8", "@dashboardcode/bsmultiselect": "^1.1.18", "@fortawesome/fontawesome-free": "^6.5.1", "@fullcalendar/core": "6.1.10",