diff --git a/Composer/packages/client/src/pages/design/index.tsx b/Composer/packages/client/src/pages/design/index.tsx index f78aa6380d..16bf7de171 100644 --- a/Composer/packages/client/src/pages/design/index.tsx +++ b/Composer/packages/client/src/pages/design/index.tsx @@ -85,7 +85,16 @@ const getTabFromFragment = () => { const DesignPage: React.FC> = props => { const { state, actions } = useContext(StoreContext); - const { dialogs, displaySkillManifest, breadcrumb, visualEditorSelection, projectId, schemas, focusPath } = state; + const { + dialogs, + displaySkillManifest, + breadcrumb, + visualEditorSelection, + projectId, + schemas, + focusPath, + designPageLocation, + } = state; const { dismissManifestModal, removeDialog, @@ -122,10 +131,10 @@ const DesignPage: React.FC { const index = currentDialog.triggers.findIndex(({ type }) => type === SDKKinds.OnBeginDialog); - if (index >= 0 && !location?.search) { + if (index >= 0 && !designPageLocation.selected) { selectTo(createSelectedPath(index)); } - }, [currentDialog?.id, location]); + }, [currentDialog?.id, designPageLocation]); useEffect(() => { if (location && props.dialogId && props.projectId) {