Skip to content

Commit d4b5ee1

Browse files
committed
fix(app-shell): name the drill-in's new-entry flag classifiedNew
The pending-changes drill-in now also destructures `isNew` from its computed detail, so the classification flag the load effect reads takes its own name. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011fs46jjQVe98Y5YTfDTixa
1 parent 4fac4ab commit d4b5ee1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/packages/app-shell/src/preview/DraftChangesPanel.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@ function EntryDetail({
696696
onComparedRef.current = onCompared;
697697
});
698698

699-
const isNew = entry.kind === 'new';
699+
const classifiedNew = entry.kind === 'new';
700700
const awaitingKind = entry.kind === undefined && classifying;
701701
useEffect(() => {
702702
if (awaitingKind) return;
@@ -708,7 +708,7 @@ function EntryDetail({
708708
// (objectstack-ai/objectstack#25894). An item the
709709
// classification could not answer still 404s here when it is new —
710710
// that's data, not an error.
711-
isNew
711+
classifiedNew
712712
? null
713713
: fetchItemBody(entry.type, entry.name, { packageId: entry.packageId, member: entry.member }),
714714
fetchItemBody(entry.type, entry.name, {
@@ -732,7 +732,7 @@ function EntryDetail({
732732
return () => {
733733
cancelled = true;
734734
};
735-
}, [entry.type, entry.name, entry.packageId, entry.member, isNew, awaitingKind]);
735+
}, [entry.type, entry.name, entry.packageId, entry.member, classifiedNew, awaitingKind]);
736736

737737
// objectui#12929 — how many records the choice would reach: asked once per
738738
// object, and only where a choice is offered.

0 commit comments

Comments
 (0)