Skip to content

Commit

Permalink
redirecting to page when workflow query is moved to that page
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitakinger committed Jan 23, 2025
1 parent cb36e5f commit adb532c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/client/src/sagas/ActionSagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1062,6 +1062,7 @@ function* handleMoveOrCopySaga(actionPayload: ReduxAction<Action>) {
const isApi = pluginType === PluginType.API;
const isQuery = pluginType === PluginType.DB;
const isSaas = pluginType === PluginType.SAAS;
const isInternal = pluginType === PluginType.INTERNAL;
const { parentEntityId } = resolveParentEntityMetadata(actionPayload.payload);

if (!parentEntityId) return;
Expand All @@ -1080,7 +1081,7 @@ function* handleMoveOrCopySaga(actionPayload: ReduxAction<Action>) {
);
}

if (isQuery) {
if (isQuery || isInternal) {
history.push(
queryEditorIdURL({
baseParentEntityId,
Expand Down

0 comments on commit adb532c

Please sign in to comment.