Skip to content

Commit 44e55cf

Browse files
committed
fix(app-shell): accept the view entry as unknown in storedLegacyOptions so tsc takes the relay's call
Claude-Session: https://claude.ai/code/session_01FjqrwXPfSMkSfkKYDSRkN2 Co-authored-by: Claude <noreply@anthropic.com>
1 parent ba7e170 commit 44e55cf

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/app-shell/src/views/ObjectView.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ export function kanbanViewOptions(viewDef: any, objectDef: any): Record<string,
489489
*
490490
* Exported for the pin test.
491491
*/
492-
export function storedLegacyOptions(viewDef: { options?: unknown } | null | undefined): Record<string, any> {
493-
const bag = viewDef?.options;
492+
export function storedLegacyOptions(viewDef: unknown): Record<string, any> {
493+
const bag = viewDef && typeof viewDef === 'object' ? (viewDef as { options?: unknown }).options : undefined;
494494
return bag && typeof bag === 'object' && !Array.isArray(bag) ? (bag as Record<string, unknown>) : {};
495495
}
496496

0 commit comments

Comments
 (0)