@@ -68,7 +68,15 @@ export function FunctionsPanel({ functionId, functionName, description, path, on
6868 const [ faults , setFaults ] = useState < Fault [ ] > ( [ ] ) ;
6969 const [ isLoading , setIsLoading ] = useState ( false ) ;
7070
71- const { selectEntity, getFunctionHosts, fetchEntityData, fetchEntityOperations, fetchConfigurations, listEntityFaults, storeConfigurations } = useAppStore (
71+ const {
72+ selectEntity,
73+ getFunctionHosts,
74+ fetchEntityData,
75+ fetchEntityOperations,
76+ fetchConfigurations,
77+ listEntityFaults,
78+ storeConfigurations,
79+ } = useAppStore (
7280 useShallow ( ( state ) => ( {
7381 selectEntity : state . selectEntity ,
7482 getFunctionHosts : state . getFunctionHosts ,
@@ -158,7 +166,7 @@ export function FunctionsPanel({ functionId, functionName, description, path, on
158166 if ( tab . id === 'hosts' ) count = hosts . length ;
159167 if ( tab . id === 'data' ) count = topics . length ;
160168 if ( tab . id === 'operations' ) count = operations . length ;
161- if ( tab . id === 'configurations' ) count = ( storeConfigurations . get ( functionId ) ?. length || 0 ) ;
169+ if ( tab . id === 'configurations' ) count = storeConfigurations . get ( functionId ) ?. length || 0 ;
162170 if ( tab . id === 'faults' ) count = faults . length ;
163171
164172 return (
@@ -236,7 +244,9 @@ export function FunctionsPanel({ functionId, functionName, description, path, on
236244 className = "p-3 rounded-lg border hover:bg-accent/50 transition-colors text-left"
237245 >
238246 < Settings className = "w-4 h-4 text-violet-500 mb-1" />
239- < div className = "text-2xl font-semibold" > { ( storeConfigurations . get ( functionId ) ?. length || 0 ) } </ div >
247+ < div className = "text-2xl font-semibold" >
248+ { storeConfigurations . get ( functionId ) ?. length || 0 }
249+ </ div >
240250 < div className = "text-xs text-muted-foreground" > Configs</ div >
241251 </ button >
242252 < button
0 commit comments