Skip to content

Commit

Permalink
Adding checks for active
Browse files Browse the repository at this point in the history
  • Loading branch information
travjenkins committed Oct 13, 2023
1 parent 88bd3cd commit 0560c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/stores/EndpointConfig/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ const getInitialState = (
get().setHydrationErrorsExist(true);
}

if (data && data.length > 0) {
if (get().active && data && data.length > 0) {
const {
setEncryptedEndpointConfig,
setEndpointConfig,
Expand Down

0 comments on commit 0560c94

Please sign in to comment.