Skip to content

Commit bc69c4a

Browse files
committed
test(app-shell): type the host's region read instead of casting to any
Claude-Session: https://claude.ai/code/session_01JQwxbW6EicqdfE9onssvrp Co-authored-by: Claude <noreply@anthropic.com>
1 parent f59c2cf commit bc69c4a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/packages/app-shell/src/views/metadata-admin/inspectors/PageBlockInspector.jsonFieldLabel-27178.test.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ function Host({ props, writes }: { props: Row; writes: Row[] }) {
6060
selection={{ kind: 'block', id: 'regions[0].components[0]' }}
6161
onPatch={(patch: Row) => setDraft((d) => {
6262
const next = { ...d, ...patch };
63-
writes.push(((next.regions as any)[0].components[0].properties) as Row);
63+
const regions = next.regions as Array<{ components: Array<{ properties: Row }> }>;
64+
writes.push(regions[0].components[0].properties);
6465
return next;
6566
})}
6667
onClearSelection={() => {}}

0 commit comments

Comments
 (0)