Skip to content

Commit efc675b

Browse files
committed
fix(app-shell): the taken-identifier refusal's Open asks nothing more
Since the New button asks before the dialog opens whether to drop a held edit, opening the flow or object that holds the identifier needs no second question. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QsR2jUEVZh2LeEfPDe25SW
1 parent b8cbbde commit efc675b

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎ui/packages/app-shell/src/views/studio-design/StudioDesignSurface.tsx‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6179,11 +6179,10 @@ export function DataPillar({
61796179
const objHeld = objLoaded ? objIncomplete : null;
61806180
// objectstack#26917 — the refusal's way out: the object holding the
61816181
// identifier is on this rail, so it opens instead of a second one being
6182-
// made. Asked as a rail row asks (objectstack#26705).
6182+
// made. The New button already asked about a held edit (objectstack#26845).
61836183
const openTakenObject = (name: string) => {
61846184
const object = objects.find((o) => o.name === name);
61856185
if (!object) return;
6186-
if (current?.name !== name && !confirmDropUnsavedWork(objHeld !== null, locale)) return;
61876186
setCreating(false);
61886187
setCreateTaken(null);
61896188
setCurrent(object);
@@ -7850,12 +7849,11 @@ export function AutomationsPillar({
78507849
}
78517850
: undefined;
78527851
// objectstack#26917 — the refusal's way out: the flow holding the identifier
7853-
// is on this rail, so it opens instead of a second one being made. Asked as
7854-
// a rail row asks (objectstack#26705): its load replaces the open buffer.
7852+
// is on this rail, so it opens instead of a second one being made. The New
7853+
// button already asked about a held step (objectstack#26845).
78557854
const openTakenFlow = (name: string) => {
78567855
const flow = flows.find((f) => f.name === name);
78577856
if (!flow) return;
7858-
if (current?.name !== name && !confirmDropUnsavedWork(flowHeld !== null, locale)) return;
78597857
setCreating(false);
78607858
setCreateTaken(null);
78617859
setCurrent(flow);

0 commit comments

Comments
 (0)