undefined always first

This commit is contained in:
vabene1111
2024-01-20 02:51:23 +08:00
parent 7d74979859
commit 2b9c294c2a
2 changed files with 10 additions and 13 deletions

View File

@@ -565,7 +565,6 @@ export default {
this.autosync_id = undefined
let timeout = Math.max(this.user_preference_store.user_settings.shopping_auto_sync, 1) * 1000 // if disabled (shopping_auto_sync=0) check again after 1 second if enabled
console.log('setting', this.user_preference_store.user_settings.shopping_auto_sync, 'timeout ', timeout)
this.autosync_id = setTimeout(() => {
if (this.user_preference_store.user_settings.shopping_auto_sync > 0) {
this.shopping_list_store.autosync()