From 3b4fba124211d85377455b63d93b80b696a56909 Mon Sep 17 00:00:00 2001 From: amandesai01 Date: Wed, 20 Nov 2024 07:31: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,