From 1ce2403cb2665a5faebefb83d2ac7b66d686d559 Mon Sep 17 00:00:00 2001 From: Cezar Date: Mon, 17 Nov 2025 19:05:28 +0200 Subject: [PATCH] =?UTF-8?q?Revert=20"Pass=20workspaceId=20to=20Tables=20if?= =?UTF-8?q?rame=20via=20parentData=20for=20dashboard=20filter=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a279500a4e485fe9a28805b81f11afc26f422eba. --- .../src/app/routes/openops-tables/index.tsx | 20 +++---------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/packages/react-ui/src/app/routes/openops-tables/index.tsx b/packages/react-ui/src/app/routes/openops-tables/index.tsx index c200f92831..5e13b39e96 100644 --- a/packages/react-ui/src/app/routes/openops-tables/index.tsx +++ b/packages/react-ui/src/app/routes/openops-tables/index.tsx @@ -2,8 +2,6 @@ import { t } from 'i18next'; import { useLocation } from 'react-router-dom'; import { flagsHooks } from '@/app/common/hooks/flags-hooks'; -import { platformHooks } from '@/app/common/hooks/platform-hooks'; -import { projectHooks } from '@/app/common/hooks/project-hooks'; import { useDefaultSidebarState } from '@/app/common/hooks/use-default-sidebar-state'; import { useCandu } from '@/app/features/extensions/candu/use-candu'; import { FlagId } from '@openops/shared'; @@ -11,21 +9,9 @@ import { FlagId } from '@openops/shared'; const OpenOpsTablesPage = () => { useDefaultSidebarState('minimized'); const { isCanduEnabled, canduClientToken, canduUserId } = useCandu(); - const { project } = projectHooks.useCurrentProject(); - const { platform: organization } = platformHooks.useCurrentPlatform(); - - // TODO: Remove type assertion and remove organization?.tablesWorkspaceId fallback once Phase 1 is complete - const workspaceId = - (project as any)?.tablesWorkspaceId ?? organization?.tablesWorkspaceId; - - const parentDataObj = { - userId: canduUserId ?? undefined, - canduClientToken: canduClientToken ?? undefined, - ...(isCanduEnabled && { isCanduEnabled: true }), - ...(workspaceId !== undefined && { workspaceId }), - }; - - const parentData = encodeURIComponent(JSON.stringify(parentDataObj)); + const parentData = encodeURIComponent( + JSON.stringify({ isCanduEnabled, userId: canduUserId, canduClientToken }), + ); const location = useLocation(); const params = new URLSearchParams(location.search);