File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,11 +19,16 @@ import { opportunityDetailSchema } from './schemas/opportunity-detail';
1919
2020import { registerCustomWidgets } from './components/registry' ;
2121
22- // 1. Register components
23- registerFields ( ) ;
24- registerLayout ( ) ;
25- registerPlaceholders ( ) ;
26- registerCustomWidgets ( ) ;
22+ // 1. Register components (Single execution guard)
23+ const globalAny : any = window ;
24+ if ( ! globalAny . __OBJECT_UI_REGISTERED__ ) {
25+ console . log ( 'Registering Object UI components...' ) ;
26+ registerFields ( ) ;
27+ registerLayout ( ) ;
28+ registerPlaceholders ( ) ;
29+ registerCustomWidgets ( ) ;
30+ globalAny . __OBJECT_UI_REGISTERED__ = true ;
31+ }
2732
2833// Generic Layout Shell
2934const Layout = ( ) => {
Original file line number Diff line number Diff line change 1+ import { setupWorker } from 'msw/browser' ;
2+ import { handlers , seedData } from './handlers' ;
3+
4+ // Seed Data
5+ seedData ( ) . catch ( console . error ) ;
6+
7+ export const worker = setupWorker ( ...handlers ) ;
You can’t perform that action at this time.
0 commit comments