Browse Source

chore: don't save on base change

pull/9949/head
amandesai01 1 week ago
parent
commit
ab8f15c202
  1. 4
      packages/nc-gui/composables/useExtensions.ts

4
packages/nc-gui/composables/useExtensions.ts

@ -108,15 +108,15 @@ export const useExtensions = createSharedComposable(() => {
} }
watch( watch(
[base, activeBaseExtensions], base,
() => { () => {
extensionPanelSize.value = +panelState.value[base.value.id!]?.width || 40 extensionPanelSize.value = +panelState.value[base.value.id!]?.width || 40
isPanelExpanded.value = panelState.value[base.value.id!]?.isOpen || false isPanelExpanded.value = panelState.value[base.value.id!]?.isOpen || false
savePanelState()
}, },
{ immediate: true }, { immediate: true },
) )
// Debounce since width is updated continuously when user drags.
watchDebounced([extensionPanelSize, isPanelExpanded], savePanelState, { debounce: 500, maxWait: 1000 }) watchDebounced([extensionPanelSize, isPanelExpanded], savePanelState, { debounce: 500, maxWait: 1000 })
const toggleExtensionPanel = () => { const toggleExtensionPanel = () => {

Loading…
Cancel
Save