From 79312d15724561c7e20d4a5b9f3dc09b2218060b Mon Sep 17 00:00:00 2001 From: amandesai01 Date: Tue, 26 Nov 2024 07:35:20 +0000 Subject: [PATCH] fix(extensions): org chart: auto select active view --- packages/nc-gui/composables/useExtensionHelper.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/nc-gui/composables/useExtensionHelper.ts b/packages/nc-gui/composables/useExtensionHelper.ts index eadf4638a3..904780b53c 100644 --- a/packages/nc-gui/composables/useExtensionHelper.ts +++ b/packages/nc-gui/composables/useExtensionHelper.ts @@ -29,6 +29,7 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState( const fullscreenModalSize = ref(extensionManifest.value?.config?.modalSize || 'lg') const activeTableId = computed(() => route.params.viewId as string | undefined) + const activeViewId = computed(() => route.params.viewTitle as string | undefined) const collapsed = computed({ get: () => extension.value?.meta?.collapsed ?? false, @@ -225,6 +226,7 @@ const [useProvideExtensionHelper, useExtensionHelper] = useInjectionState( showExpandBtn, fullscreenModalSize, activeTableId, + activeViewId, getViewsForTable, getData, getTableMeta,