File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -345,6 +345,8 @@ export function AppSchemaRenderer({
345345 ( ) => areas . length > 0 ? areas [ 0 ] . id : null ,
346346 ) ;
347347
348+ const areaIds = areas . map ( ( a ) => a . id ) . join ( ',' ) ;
349+
348350 useEffect ( ( ) => {
349351 if ( areas . length > 0 ) {
350352 setActiveAreaId ( ( prev ) =>
@@ -353,7 +355,7 @@ export function AppSchemaRenderer({
353355 } else {
354356 setActiveAreaId ( null ) ;
355357 }
356- } , [ schema . name , areas . length ] ) ;
358+ } , [ schema . name , areaIds ] ) ;
357359
358360 const activeArea = areas . find ( ( a ) => a . id === activeAreaId ) ;
359361 const resolvedNavigation : NavigationItem [ ] = activeArea ?. navigation ?? flatNavigation ;
Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ export function resolveIcon(name?: string): React.ComponentType<any> {
101101 // kebab-case → PascalCase
102102 const pascal = name
103103 . split ( '-' )
104+ . filter ( Boolean )
104105 . map ( ( p ) => p . charAt ( 0 ) . toUpperCase ( ) + p . slice ( 1 ) )
105106 . join ( '' ) ;
106107 if ( ( LucideIcons as any ) [ pascal ] ) {
You can’t perform that action at this time.
0 commit comments