Skip to content

Commit

Permalink
🐛 minor bug fix which caused random UI issues on page navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
faburem committed Jan 10, 2024
1 parent 9c66998 commit 3757150
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions imports/ui/pages/track/tracktime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'))
Expand Down Expand Up @@ -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) => {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 3757150

Please sign in to comment.