File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -62,9 +62,8 @@ import { ViewSwitcher } from './ViewSwitcher';
6262
6363/**
6464 * SchemaRenderer from @object-ui/react, used to render sub-view schemas.
65- * Falls back to null if not available.
6665 */
67- const SchemaRendererComponent : React . FC < any > | null = ImportedSchemaRenderer ?? null ;
66+ const SchemaRendererComponent : React . FC < any > = ImportedSchemaRenderer ;
6867
6968export interface ObjectViewProps {
7069 /**
Original file line number Diff line number Diff line change @@ -27,10 +27,8 @@ export type { SharedViewLinkProps } from './SharedViewLink';
2727/**
2828 * SchemaRendererContext is created by @object-ui/react.
2929 * The context value provides { dataSource }.
30- * A fallback context is used when the imported context is unavailable.
3130 */
32- const FallbackContext = React . createContext < any > ( null ) ;
33- const SchemaRendererContext : React . Context < any > = ImportedSchemaRendererContext ?? FallbackContext ;
31+ const SchemaRendererContext : React . Context < any > = ImportedSchemaRendererContext ;
3432
3533// Register object-view component
3634const ObjectViewRenderer : React . FC < { schema : any } > = ( { schema } ) => {
You can’t perform that action at this time.
0 commit comments