From bef3aba1bf290870c36b9d1c9ae7dd7368b760b1 Mon Sep 17 00:00:00 2001 From: jacovinus Date: Mon, 18 Dec 2023 09:57:33 +0100 Subject: [PATCH 1/2] fix: Cardinality active by default at GO backend --- packages/main/views/Main/helpers.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/main/views/Main/helpers.ts b/packages/main/views/Main/helpers.ts index c27bccb1..72455dff 100644 --- a/packages/main/views/Main/helpers.ts +++ b/packages/main/views/Main/helpers.ts @@ -175,11 +175,17 @@ export async function checkLocalAPI( if (response && response?.status === 200) { if (response?.contentLength === "0") { setResponseType(ResponseEnum.GO); + console.log("setting plugin to true") LocalPluginsManagement().togglePluginVisibility( "Query Item", "Cardinal View", true ); + LocalPluginsManagement().togglePlugin( + "Query Item", + "Cardinal View", + true + ) isReady = true; } else { setResponseType(ResponseEnum.NODE); @@ -188,6 +194,11 @@ export async function checkLocalAPI( "Cardinal View", false ); + LocalPluginsManagement().togglePlugin( + "Query Item", + "Cardinal View", + false + ) isReady = true; } } From 20eed0866ced60fbef8d8b1e140c3c615cdc2dbd Mon Sep 17 00:00:00 2001 From: jacovinus Date: Mon, 18 Dec 2023 10:00:53 +0100 Subject: [PATCH 2/2] fix: rm log --- packages/main/views/Main/helpers.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/main/views/Main/helpers.ts b/packages/main/views/Main/helpers.ts index 72455dff..5b06ca25 100644 --- a/packages/main/views/Main/helpers.ts +++ b/packages/main/views/Main/helpers.ts @@ -175,7 +175,6 @@ export async function checkLocalAPI( if (response && response?.status === 200) { if (response?.contentLength === "0") { setResponseType(ResponseEnum.GO); - console.log("setting plugin to true") LocalPluginsManagement().togglePluginVisibility( "Query Item", "Cardinal View",