Skip to content

Commit e94eacd

Browse files
fix(studio): the list-view panel does not ask /layers for the fallback default view id (#36787)
<!-- claude-projects-attribution: {"github_login":"os-warren"} --> _Requested by **Warren** · [project thread](https://claude.ai/code/project/chan_01U5RdnAAmkSQmZbqh6FtqZ8?thread=cmsg_01U5RdnAAmkSQmZbqh6FtqZ8UNMg9RsSwRntqJjhmPv5uR)_ Fixes #36750 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:在 Studio 打开一个还没有默认列表视图的对象时,浏览器不再记一条服务器 404 报错;面板显示和保存都不变。 - 属于 Studio 评审 9 张卡中的一张(列表视图的多余请求),替开发者清掉控制台里的假报错。 - 出错时最坏是面板对一个真实存在的默认视图显示「尚未创建」;只在元数据已加载完成时才跳过请求,可直接撤回这个 PR。 - 无。 ## What changes With no view of an object flagged default, the Studio list-view buffer edits the fallback id `OBJECT.default` (`listViewTargetOf`). Nothing is published under it until the panel's first edit creates it, yet the buffer read its published layer on every open and the server answered 404 (the client maps that to an empty envelope, but the browser logs the failed request). The draft-only guard (objectui#12508) no longer covers this since a new object is published at once. - `ObjectListViewInspector.tsx`: new `isFallbackListView(target, views)` and a `targetIsFallback` field on the hook's result. The target is the fallback when it is the default target and no key of the object's merged `listViews` (every served view item, by qualified name, via `mergeViewsIntoObjects`) nor of the package's drafted list views resolves to its id. The layered read is skipped for it when there is no draft. It is read only off an answer that can say so: the package's view drafts have answered AND `getTypeStatus('object') === 'ready'` (the registry composed with the `/meta/view` list). While loading, refetching after a publish, or under a context that reports no status, the layer is read as before. The flag is a load-effect dependency, so a view that appears once metadata lands is re-read. - `StudioCustomizeControls.tsx` + `StudioDesignSurface.tsx`: the other caller of the layered read for the same id, the Customize served-override read on a read-only base. `useServedOverride` takes `item.unpublished`; it still reads the pair's draft first, then answers `{ declaration: null, state: null, shipped: 'none' }` without the layered read, exactly what the 404 envelope produced. - Other layered-read callers checked: `authoredDraft.ts` runs only on a served draft; `ViewConfigPanel` and the runtime use real tab ids (the runtime fallback tab is `all`, not this id). ## Tests - New `ObjectListViewInspector.fallbackNoLayers-36750.test.tsx` (real hook over a real `MetadataClient`, in-memory server): fallback id sends no `/layers` and reads "not created yet"; CONTROLS: a flagged published default still reads its layer; a view held under bare `default` unflagged still reads it; while objects are `loading` the layer is read, then not again once `ready`; a context without `getTypeStatus` reads as before; `useServedOverride` with `unpublished` skips the layered read after the pair draft read, and without it still reads. - `ObjectListViewInspector.layersUnsaved-11799.test.tsx`: docblock updated to say its 404 case holds because its context reports no status. - Both suites import `@objectstack/lint` at module top (`check:test-source-alias`). ## Acceptance notes - Ablation (committed fix first, `scripts/ablation-replace.mjs`, restored to HEAD blob each time): dropping `(!draft && targetIsFallback)` from the layered-read guard turns 2 of 7 new cases red; deleting the `unpublished` early return turns 1 red. - Existing fixtures across the list-view suites serve a published `OBJECT.default` their object definition does not list. They use hand-rolled contexts without `getTypeStatus`, so they keep the old read; none was edited. - Not checked: whether the runtime ViewConfigPanel on the `all` fallback tab issues its own `/layers` 404 (different id, runtime surface). ## Verification <details><summary>Local runs on 31dfa88 (fix on e4a8007)</summary> - `vitest run` ObjectListViewInspector*, StudioDesignSurface.listView*, InterfacesPillar* : Test Files 38 passed (38), Tests 222 passed (222) (verify-lock VERDICT command-exit 0). - Two touched suites after the lint import: Test Files 2 passed, Tests 11 passed. - `pnpm --filter @object-ui/app-shell run type-check`: VERDICT command-exit 0. - `dispatch-gates.mjs --commands` derived 38 commands: all exit 0 (`check:test-source-alias` first failed on the two touched suites, fixed, re-run exit 0). - `overlap-check.mjs`: VERDICT clean (origin/main, #36774, #36781, #36784). </details> Two-minute check: open Studio, Interfaces, pick an object that has no list view flagged default; the Network tab shows no `GET …/meta/view/OBJECT.default/layers`, and the panel shows the default view to create as before. --- _Generated by [Claude Code](https://claude.ai/code/session_01JQwxbWBvGf6TP6P9XT1tuo)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 12ccffe commit e94eacd

6 files changed

Lines changed: 327 additions & 14 deletions
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(studio): opening an object with no default list view no longer asks the server for a view that does not exist
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
With no view of an object flagged default, Studio's list-view panel edits `OBJECT.default`, the name its first edit creates the view under. Until then nothing is published under that name, but the panel still read its published layer (`GET /api/v1/meta/view/OBJECT.default/layers`) on every open, and the browser logged the server's 404. The panel now skips that read when the id is the fallback: no view of the object's merged `listViews`, and none of the package's drafted list views, is held under it, read only once the shell's objects and the package's view drafts have answered. The Customize door's served-override read on a read-only base skips the same read and answers as its 404 did. What the panel shows and saves is unchanged. No props or exports change outside `@object-ui/app-shell`'s internal Studio modules.
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* objectstack#36750 — the list-view buffer does not ask `GET …/layers` for the
5+
* fallback default view id.
6+
*
7+
* With no view of the object flagged default, the buffer edits
8+
* `<object>.default` (`listViewTargetOf`), the name the panel's first edit
9+
* creates the view under. Nothing is published under it, so the server
10+
* answers its `/layers` with a 404 (objectstack#22397) and the browser logs a
11+
* failed request on every open of such an object. The guard that used to skip
12+
* this read covered draft-only objects only (objectui#12508); since
13+
* objectstack#36511 a new object is published at once, so it no longer
14+
* applies. The buffer already knows the id is the fallback: no view of the
15+
* object's merged `listViews` (which holds every view item the server serves,
16+
* under its qualified name) nor of this package's drafted list views is held
17+
* under it.
18+
*
19+
* The REAL hook over a REAL `MetadataClient`, whose transport is an in-memory
20+
* server answering as the framework does (404 for `/layers` with no layer).
21+
*
22+
* Pinned:
23+
* - the fallback id: no `/layers`, and the buffer reads "not created yet";
24+
* - CONTROL: a published default view the merged `listViews` holds (flagged)
25+
* still reads its layer;
26+
* - CONTROL: a view held under `default` unflagged (the target falls back to
27+
* the id a view really has) still reads its layer;
28+
* - CONTROL: while the shell's objects are still loading, absence from them
29+
* says nothing, so the layer is read as before; once they answer, the
30+
* fallback stops being read; a context that reports no load status (a
31+
* hand-rolled one) is read as before too;
32+
* - the Customize door's served-override read (`useServedOverride`) skips
33+
* the layered read for an item flagged `unpublished`, answering as its 404
34+
* did, and still reads the pair's draft first.
35+
*/
36+
37+
import '@testing-library/jest-dom/vitest';
38+
// Paid at collection, not inside a clocked case (check:test-source-alias):
39+
// the source under test loads `@objectstack/lint` lazily.
40+
import '@objectstack/lint';
41+
import * as React from 'react';
42+
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
43+
import { act, cleanup, render } from '@testing-library/react';
44+
import { MetadataCtx, type MetadataContextValue, type MetadataTypeStatus } from '@object-ui/react';
45+
import { MetadataClient } from '@object-ui/data-objectstack';
46+
import { useObjectListViewDraft, type ObjectListViewDraft } from './ObjectListViewInspector';
47+
import { useServedOverride, type ServedOverride } from './StudioCustomizeControls';
48+
import type { Surface } from './navSurface';
49+
50+
const PKG = 'com.acme.app';
51+
const OBJECT = 'acme_ticket';
52+
const FALLBACK = `${OBJECT}.default`;
53+
54+
const server = {
55+
active: new Map<string, Record<string, unknown>>(),
56+
requests: [] as Array<{ method: string; path: string; status: number }>,
57+
};
58+
59+
const json = (status: number, body: unknown) =>
60+
new Response(JSON.stringify(body), { status, headers: { 'Content-Type': 'application/json' } });
61+
62+
async function serve(input: RequestInfo | URL, init?: RequestInit): Promise<Response> {
63+
const method = (init?.method ?? 'GET').toUpperCase();
64+
const url = new URL(String(input), 'http://studio.test');
65+
let status = 200;
66+
let body: unknown = [];
67+
const meta = url.pathname.match(/^\/api\/v1\/meta\/(.+)$/);
68+
if (meta) {
69+
const seg = meta[1].split('/').map(decodeURIComponent);
70+
if (seg.length === 1 && seg[0] === '_drafts') {
71+
body = [];
72+
} else if (seg.length === 1) {
73+
body = [];
74+
} else if (seg.length === 3 && seg[2] === 'layers') {
75+
const row = server.active.get(`${seg[0]}/${seg[1]}`);
76+
if (row) body = { code: null, overlay: row, overlayScope: 'env', effective: row, draft: null };
77+
else [status, body] = [404, { error: { code: 'NOT_FOUND', message: 'absent' } }];
78+
} else if (seg.length === 2) {
79+
[status, body] = [404, { error: { code: 'NO_DRAFT', message: 'absent' } }];
80+
}
81+
}
82+
server.requests.push({ method, path: url.pathname, status });
83+
return json(status, body);
84+
}
85+
86+
const client = new MetadataClient({ baseUrl: '', fetch: vi.fn(serve) as unknown as typeof fetch });
87+
88+
const listItem = (name: string, isDefault: boolean) => ({
89+
name,
90+
object: OBJECT,
91+
viewKind: 'list',
92+
...(isDefault ? { isDefault: true } : {}),
93+
config: { type: 'grid', data: { provider: 'object', object: OBJECT }, columns: ['title'] },
94+
});
95+
96+
function metadataOf(listViews: Record<string, unknown> | undefined, status: MetadataTypeStatus | null): MetadataContextValue {
97+
return {
98+
apps: [],
99+
objects: [{ name: OBJECT, label: 'Ticket', fields: { title: { name: 'title', type: 'text' } }, ...(listViews ? { listViews } : {}) }],
100+
dashboards: [],
101+
reports: [],
102+
pages: [],
103+
loading: false,
104+
error: null,
105+
refresh: async () => {},
106+
invalidate: () => {},
107+
ensureType: async () => [],
108+
getItem: async () => null,
109+
getItemsByType: () => [],
110+
...(status ? { getTypeStatus: () => status } : {}),
111+
};
112+
}
113+
114+
let latest: ObjectListViewDraft | null = null;
115+
function Probe() {
116+
const leaf: Surface = { type: 'object', name: OBJECT, label: OBJECT };
117+
const d = useObjectListViewDraft({ client, packageId: PKG, leaf, publishNonce: 0 });
118+
React.useLayoutEffect(() => {
119+
latest = d;
120+
});
121+
return null;
122+
}
123+
124+
const settle = () =>
125+
act(async () => {
126+
for (let i = 0; i < 20; i++) await new Promise((r) => setTimeout(r, 0));
127+
});
128+
129+
async function open(metadata: MetadataContextValue) {
130+
const view = render(
131+
<MetadataCtx.Provider value={metadata}>
132+
<Probe />
133+
</MetadataCtx.Provider>,
134+
);
135+
await settle();
136+
return {
137+
d: () => latest!,
138+
rerender: async (next: MetadataContextValue) => {
139+
view.rerender(
140+
<MetadataCtx.Provider value={next}>
141+
<Probe />
142+
</MetadataCtx.Provider>,
143+
);
144+
await settle();
145+
},
146+
};
147+
}
148+
149+
const layersAsked = (name: string) =>
150+
server.requests.filter((r) => r.method === 'GET' && r.path === `/api/v1/meta/view/${name}/layers`).map((r) => r.status);
151+
152+
beforeEach(() => {
153+
server.active.clear();
154+
server.requests = [];
155+
latest = null;
156+
});
157+
afterEach(cleanup);
158+
159+
describe('useObjectListViewDraft — the fallback default view is not asked for /layers (objectstack#36750)', () => {
160+
it('no view flagged default and none held under the fallback id: no /layers, and the buffer reads "not created yet"', async () => {
161+
const { d } = await open(metadataOf(undefined, 'ready'));
162+
163+
expect(d().target).toEqual({ objectName: OBJECT, viewId: FALLBACK, isDefault: true });
164+
expect(d().targetIsFallback).toBe(true);
165+
expect(layersAsked(FALLBACK)).toEqual([]);
166+
expect(server.requests.filter((r) => r.status >= 400)).toEqual([]);
167+
expect(d().loadedFor).toBe(`listView:${FALLBACK}`);
168+
expect(d().row).toBeNull();
169+
expect(d().failure).toBeNull();
170+
});
171+
172+
it('CONTROL: a published default view the merged listViews holds still reads its layer', async () => {
173+
const all = listItem(`${OBJECT}.all`, true);
174+
server.active.set(`view/${all.name}`, all);
175+
const { d } = await open(metadataOf({ [all.name]: { ...all.config, name: all.name, isDefault: true } }, 'ready'));
176+
177+
expect(d().target?.viewId).toBe(`${OBJECT}.all`);
178+
expect(d().targetIsFallback).toBe(false);
179+
expect(layersAsked(`${OBJECT}.all`)).toEqual([200]);
180+
expect(d().row).toEqual(all);
181+
});
182+
183+
it('CONTROL: a view held under `default` unflagged is no fallback, and still reads its layer', async () => {
184+
const held = listItem(FALLBACK, false);
185+
server.active.set(`view/${FALLBACK}`, held);
186+
// An object document's own `listViews` keys its entries bare.
187+
const { d } = await open(metadataOf({ default: { ...held.config } }, 'ready'));
188+
189+
expect(d().target).toEqual({ objectName: OBJECT, viewId: FALLBACK, isDefault: true });
190+
expect(d().targetIsFallback).toBe(false);
191+
expect(layersAsked(FALLBACK)).toEqual([200]);
192+
expect(d().row).toEqual(held);
193+
});
194+
195+
it('CONTROL: while the shell\'s objects are loading the layer is read as before; once they answer, it is not read again', async () => {
196+
const { d, rerender } = await open(metadataOf(undefined, 'loading'));
197+
198+
expect(d().targetIsFallback).toBe(false);
199+
expect(layersAsked(FALLBACK)).toEqual([404]);
200+
expect(d().row).toBeNull();
201+
expect(d().failure).toBeNull();
202+
203+
await rerender(metadataOf(undefined, 'ready'));
204+
expect(d().targetIsFallback).toBe(true);
205+
expect(layersAsked(FALLBACK)).toEqual([404]);
206+
expect(d().loadedFor).toBe(`listView:${FALLBACK}`);
207+
expect(d().row).toBeNull();
208+
});
209+
210+
it('CONTROL: a context that reports no load status proves no absence, so the layer is read as before', async () => {
211+
const { d } = await open(metadataOf(undefined, null));
212+
213+
expect(d().targetIsFallback).toBe(false);
214+
expect(layersAsked(FALLBACK)).toEqual([404]);
215+
expect(d().row).toBeNull();
216+
expect(d().failure).toBeNull();
217+
});
218+
});
219+
220+
describe('useServedOverride — an item flagged `unpublished` is not asked for its layers (objectstack#36750)', () => {
221+
let served: ServedOverride | null = null;
222+
function ServedProbe({ fake, unpublished, pair }: { fake: Parameters<typeof useServedOverride>[0]; unpublished: boolean; pair: string | null }) {
223+
const s = useServedOverride(fake, { type: 'view', name: FALLBACK, ...(unpublished ? { unpublished: true } : {}) }, 'com.acme.base', pair, 0);
224+
React.useLayoutEffect(() => {
225+
served = s;
226+
});
227+
return null;
228+
}
229+
const fakeClient = () => ({
230+
getDraft: vi.fn(async () => null),
231+
layered: vi.fn(async () => ({ code: null, overlay: null, overlayScope: null, effective: null })),
232+
});
233+
234+
it('skips the layered read and answers as its 404 did, after reading the pair\'s draft', async () => {
235+
const fake = fakeClient();
236+
render(<ServedProbe fake={fake as never} unpublished pair="com.acme.base.custom" />);
237+
await settle();
238+
239+
expect(fake.layered).not.toHaveBeenCalled();
240+
expect(fake.getDraft).toHaveBeenCalledTimes(1);
241+
expect(served).toEqual({ declaration: null, state: null, shipped: 'none' });
242+
});
243+
244+
it('CONTROL: an item not flagged still reads its layers, with the same answer for nothing published', async () => {
245+
const fake = fakeClient();
246+
render(<ServedProbe fake={fake as never} unpublished={false} pair={null} />);
247+
await settle();
248+
249+
expect(fake.layered).toHaveBeenCalledTimes(1);
250+
expect(served).toEqual({ declaration: null, state: null, shipped: 'none' });
251+
});
252+
});

‎ui/packages/app-shell/src/views/studio-design/ObjectListViewInspector.layersUnsaved-11799.test.tsx‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
* the buffer holds its published layer, as before.
2323
*
2424
* A view that exists nowhere yet (no draft, no layer: the default list view of
25-
* an object that has none) still asks `/layers` and gets its 404. Nothing the
26-
* hook holds says the view was never saved: its draft read says only whether a
27-
* draft is pending, and the object's `listViews` from the metadata cache is not
28-
* read as that answer here (the 11823 pillar suite serves a default view its
29-
* object definition does not list). The framework keeps that 404 by design
25+
* an object that has none) still asks `/layers` HERE and gets its 404: this
26+
* suite's metadata context reports no load status, so the object's `listViews`
27+
* from it is no answer that the view was never saved (the 11823 pillar suite
28+
* serves a default view its object definition does not list). Under a
29+
* metadata cache that reports its objects loaded, the fallback id is not asked
30+
* at all (objectstack#36750, ObjectListViewInspector.fallbackNoLayers-36750).
31+
* The framework keeps that 404 by design
3032
* (objectstack-ai/objectstack#22397, answer (a)), and `MetadataClient.layered()`
3133
* resolves it as an envelope with every layer null, so the buffer reads it as
3234
* "not created yet": no row, no failure, and the canvas shows the view the first
@@ -35,6 +37,9 @@
3537
*/
3638

3739
import '@testing-library/jest-dom/vitest';
40+
// Paid at collection, not inside a clocked case (check:test-source-alias):
41+
// the source under test loads `@objectstack/lint` lazily.
42+
import '@objectstack/lint';
3843
import * as React from 'react';
3944
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
4045
import { act, cleanup, render, screen } from '@testing-library/react';

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

Lines changed: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,22 @@ export function listViewTargetOf(
187187
return { objectName, viewId: qualifiedViewId(objectName, flagged ?? 'default'), isDefault: true };
188188
}
189189

190+
/**
191+
* objectstack#36750 — whether `target` is the fallback default view: the
192+
* object's default list view (`isDefault`) whose id no view of `views` is held
193+
* under. {@link listViewTargetOf} names `<object>.default` when no view is
194+
* flagged default, and nothing is published under that name until the
195+
* panel's first edit creates the view and a publish makes it live, so the
196+
* server answers `GET …/layers` for it with a 404 (objectstack#22397). `views`
197+
* is the map {@link listViewTargetOf} read: the object's merged `listViews`,
198+
* which holds every view item the server serves for it under its qualified
199+
* name (`mergeViewsIntoObjects`), with this package's drafted list views.
200+
*/
201+
export function isFallbackListView(target: ListViewTarget, views: Record<string, unknown>): boolean {
202+
if (!target.isDefault) return false;
203+
return !Object.keys(views).some((key) => qualifiedViewId(target.objectName, key) === target.viewId);
204+
}
205+
190206
/**
191207
* A view item that does not exist yet: the record shape, bound to its object,
192208
* listing `columns`. Flagged default only where it is the object's default
@@ -352,6 +368,13 @@ export interface ObjectListViewDraft {
352368
views: ListViewChoice[];
353369
/** The autosave's `target`: the buffer key of the view ({@link listViewBufferKey}), `''` with no target. */
354370
targetKey: string;
371+
/**
372+
* objectstack#36750 — `target` is the fallback default view
373+
* ({@link isFallbackListView}): no view of the object is flagged default, and
374+
* no view is held under the id it falls back to. Nothing is published under
375+
* it, so nothing asks its published layer.
376+
*/
377+
targetIsFallback: boolean;
355378
/** The autosave's `loadedFor`: the target the buffer was loaded for. */
356379
loadedFor: string;
357380
/** The view item as the server holds it (draft, else published), with edits; `null` when it does not exist yet. */
@@ -549,9 +572,8 @@ export function useObjectListViewDraft({
549572
const draftViewRows = viewDraftsRead ? viewDrafts.rows : [];
550573
// objectstack#30177 — the entry's view among the merged views and this
551574
// package's drafted list views (the module docblock's "Which view").
552-
const entryTarget = objectName
553-
? listViewTargetOf(objectName, landingViewName, { ...publishedViews, ...draftedListViewsOf(objectName, draftViewRows) })
554-
: null;
575+
const knownViews = objectName ? { ...publishedViews, ...draftedListViewsOf(objectName, draftViewRows) } : {};
576+
const entryTarget = objectName ? listViewTargetOf(objectName, landingViewName, knownViews) : null;
555577
const entryUnsettled =
556578
!!entryTarget?.isDefault &&
557579
!viewDraftsRead &&
@@ -572,6 +594,16 @@ export function useObjectListViewDraft({
572594
objectName && !holding ? listViewChoicesOf(objectName, publishedViews, draftViewRows, entryTarget, target) : [];
573595
const viewId = target?.viewId ?? '';
574596
const targetKey = viewId ? listViewBufferKey(viewId) : '';
597+
// objectstack#36750 — the target is the fallback default view, read only off
598+
// an answer that can say so: this package's view drafts have answered, and
599+
// the shell's objects are composed with the `/meta/view` list it served
600+
// (`getTypeStatus('object')` is `ready` only then). While either is still
601+
// loading, or refetching after a publish, the view may yet be listed, so its
602+
// layer is read as before. A context that reports no status (a hand-rolled
603+
// one) is no such answer either: absence from its objects proves nothing.
604+
const metadataSettled = metadata.getTypeStatus?.('object') === 'ready';
605+
const targetIsFallback =
606+
!!target && viewDraftsRead && metadataSettled && isFallbackListView(target, knownViews);
575607
// objectstack#30317 — a draft-only object is absent from the merged
576608
// metadata, so the columns a view created here starts with are read off
577609
// this package's drafted definition, read with the drafts overlaid (the
@@ -714,7 +746,9 @@ export function useObjectListViewDraft({
714746
// already carries that layer, so it is not asked again.
715747
const layeredAt = { packageId };
716748
const draftLayers = readAt === packageId ? (authoredRead?.layers ?? null) : null;
717-
const lay = objectDraftOnly
749+
// objectstack#36750 — nor for the fallback default view: nothing is
750+
// published under its id, so its layer would answer 404 too.
751+
const lay = objectDraftOnly || (!draft && targetIsFallback)
718752
? null
719753
: !draft
720754
? await client.layered<Row>('view', viewId, layeredAt)
@@ -753,7 +787,7 @@ export function useObjectListViewDraft({
753787
return () => {
754788
cancelled = true;
755789
};
756-
}, [client, viewId, holding, objectName, packageId, publishNonce, reloadNonce, recordRead, customizing]);
790+
}, [client, viewId, holding, objectName, packageId, publishNonce, reloadNonce, recordRead, customizing, targetIsFallback]);
757791

758792
const edit = React.useCallback((row: Row) => {
759793
setBuffer((b) => ({ ...b, row, dirty: true }));
@@ -865,6 +899,7 @@ export function useObjectListViewDraft({
865899
entryTarget: pickedViewId ? entryTarget : null,
866900
views,
867901
targetKey,
902+
targetIsFallback,
868903
loadedFor: buffer.for,
869904
row: current ? row : null,
870905
notList: current && notList,

0 commit comments

Comments
 (0)