Skip to content

Commit e3cc3f4

Browse files
committed
refactor: adjust code for debounce v3
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent c02e23c commit e3cc3f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/settings/src/components/Users/VirtualList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export default Vue.extend({
121121
this.tableHeight = root?.clientHeight ?? 0
122122
logger.debug('VirtualList resizeObserver updated')
123123
this.onScroll()
124-
}, 100, false))
124+
}, 100))
125125
126126
this.resizeObserver.observe(root)
127127
this.resizeObserver.observe(tfoot)

apps/user_status/src/UserStatus.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default {
112112
if (wasAway) {
113113
this._backgroundHeartbeat()
114114
}
115-
}, 1000 * 2, true)
115+
}, 1000 * 2, { immediate: true })
116116
window.addEventListener('mousemove', this.mouseMoveListener, {
117117
capture: true,
118118
passive: true,

0 commit comments

Comments
 (0)