From 0560c94379128e7e356ae748bc6f6771e9c4bc64 Mon Sep 17 00:00:00 2001 From: Travis Jenkins Date: Fri, 13 Oct 2023 10:50:08 -0400 Subject: [PATCH] Adding checks for active --- .../shared/Entity/ExistingEntityCards/Store/create.ts | 2 +- src/stores/EndpointConfig/Store.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/shared/Entity/ExistingEntityCards/Store/create.ts b/src/components/shared/Entity/ExistingEntityCards/Store/create.ts index 6489fbede..e31b3abfe 100644 --- a/src/components/shared/Entity/ExistingEntityCards/Store/create.ts +++ b/src/components/shared/Entity/ExistingEntityCards/Store/create.ts @@ -58,7 +58,7 @@ const getInitialState = ( }, hydrateState: async (entityType, connectorId) => { - if (connectorId) { + if (get().active && connectorId) { const { setCreateNewTask, setHydrationErrorsExist } = get(); const { data, error } = await getLiveSpecsByConnectorId( diff --git a/src/stores/EndpointConfig/Store.ts b/src/stores/EndpointConfig/Store.ts index 7338c5e52..1749e44a1 100644 --- a/src/stores/EndpointConfig/Store.ts +++ b/src/stores/EndpointConfig/Store.ts @@ -230,7 +230,7 @@ const getInitialState = ( get().setHydrationErrorsExist(true); } - if (data && data.length > 0) { + if (get().active && data && data.length > 0) { const { setEncryptedEndpointConfig, setEndpointConfig,