Browse Source

fix: use number instead of nodejs timeout

pull/8371/head
mertmit 7 months ago
parent
commit
80647a598c
  1. 4
      packages/nc-gui/components/smartsheet/Cell.vue

4
packages/nc-gui/components/smartsheet/Cell.vue

@ -112,12 +112,12 @@ const syncValue = useDebounceFn(
{ maxWait: 2000 }, { maxWait: 2000 },
) )
let saveTimer: NodeJS.Timeout | null = null let saveTimer: number
const updateWhenEditCompleted = () => { const updateWhenEditCompleted = () => {
if (editEnabled.value) { if (editEnabled.value) {
if (saveTimer) clearTimeout(saveTimer) if (saveTimer) clearTimeout(saveTimer)
saveTimer = setTimeout(updateWhenEditCompleted, 500) saveTimer = window.setTimeout(updateWhenEditCompleted, 500)
} else { } else {
emit('save') emit('save')
} }

Loading…
Cancel
Save