From a2e32c9073a613cd62151f209847dbe421c94bb3 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Wed, 20 Mar 2024 00:52:47 +0530 Subject: [PATCH] re-select the query if entities are mapped and updated the store --- frontend/src/_stores/dataQueriesStore.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/_stores/dataQueriesStore.js b/frontend/src/_stores/dataQueriesStore.js index d905cee09a..cc4f602b78 100644 --- a/frontend/src/_stores/dataQueriesStore.js +++ b/frontend/src/_stores/dataQueriesStore.js @@ -101,6 +101,7 @@ export const useDataQueriesStore = create( set({ dataQueries }); if (type === 'mappingUpdate') { const { actions } = useQueryPanelStore.getState(); + actions.setSelectedQuery(null); const queryId = dataQueries[0]?.id; actions.setSelectedQuery(queryId);