Skip to content

Commit ee397fd

Browse files
committed
revert(app-shell): leave the OWD overview's publish to land after its guarded-save PR
Claude-Session: https://claude.ai/code/session_01L6bhgWAbKPqt7vTgX5qgUn Co-authored-by: Claude <noreply@anthropic.com>
1 parent fa95fca commit ee397fd

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import { readFields } from '../metadata-admin/previews/object-fields-io.js';
6767
import { t, tFormat, type SupportedLocale } from '../metadata-admin/i18n.js';
6868
import { cbpMasterDetailDefaultsRequired, deriveMasterObject, requireCbpMasterDetails } from './owd-sharing.js';
6969
import { toast } from 'sonner';
70-
import { draftReceiptVersion, type DraftPin, useDraftSaveGuard } from '../metadata-admin/DraftConflictDialog.js';
70+
import { type DraftPin, useDraftSaveGuard } from '../metadata-admin/DraftConflictDialog.js';
7171
import {
7272
STUDIO_SAVE_TOAST_ID,
7373
publishSavedItem,
@@ -509,18 +509,15 @@ export function PackageOwdOverviewPanel({
509509
// runtime resolved from the list; the authoring door refuses the two
510510
// together, for the whole object. So the resolved `options` stay out of
511511
// the body, on every bound field and on nothing else.
512-
// objectstack#37440 — the version this row's own draft write returned, which pins its publish.
513-
let draftVersion: string | undefined;
514512
try {
515-
const receipt = await client.save('object', s.row.name, dropServedPicklistOptions(next), {
513+
await client.save('object', s.row.name, dropServedPicklistOptions(next), {
516514
mode: 'draft',
517515
packageId,
518516
surface: 'studio',
519517
// objectstack#27458 — forced only after the author confirmed the
520518
// prerequisite below, and only on the rows that carry one.
521519
...(force && relations.length > 0 ? { force: true } : {}),
522520
});
523-
draftVersion = draftReceiptVersion(receipt);
524521
} catch (e) {
525522
// objectstack#27458 — making the relationship required is a change
526523
// the server's destructive-change guard asks to confirm (409). Name
@@ -554,7 +551,7 @@ export function PackageOwdOverviewPanel({
554551
recordPublished('object', s.row.name, packageId, editPinsRef.current.get(s.row.name) ?? null);
555552
const live = await publishSavedItem(
556553
client,
557-
{ type: 'object', name: s.row.name, packageId, draftVersion },
554+
{ type: 'object', name: s.row.name, packageId },
558555
s.row.hasDraft,
559556
publishPinned,
560557
);

0 commit comments

Comments
 (0)