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",