re-select the query if entities are mapped and updated the store

This commit is contained in:
arpitnath 2024-03-20 00:52:47 +05:30
parent 8e3f2ec474
commit a2e32c9073

View file

@ -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);