File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
site/src/components/Resources Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -53,11 +53,14 @@ const MetadataItem: FC<{ item: WorkspaceAgentMetadata }> = ({ item }) => {
53
53
}
54
54
55
55
export interface AgentMetadataViewProps {
56
- metadata : WorkspaceAgentMetadata [ ]
56
+ metadata ? : WorkspaceAgentMetadata [ ]
57
57
}
58
58
59
59
export const AgentMetadataView : FC < AgentMetadataViewProps > = ( { metadata } ) => {
60
60
const styles = useStyles ( )
61
+ if ( metadata === undefined ) {
62
+ return < CircularProgress size = { 16 } />
63
+ }
61
64
if ( metadata . length === 0 ) {
62
65
return < > </ >
63
66
}
@@ -99,10 +102,6 @@ export const AgentMetadata: FC<{
99
102
}
100
103
} , [ agent . id , watchAgentMetadata ] )
101
104
102
- if ( metadata === undefined ) {
103
- return < CircularProgress size = { 16 } />
104
- }
105
-
106
105
return AgentMetadataView ( { metadata } )
107
106
}
108
107
You can’t perform that action at this time.
0 commit comments