File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
site/src/components/Resources Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -53,14 +53,11 @@ 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
- }
64
61
if ( metadata . length === 0 ) {
65
62
return < > </ >
66
63
}
@@ -102,7 +99,11 @@ export const AgentMetadata: FC<{
102
99
}
103
100
} , [ agent . id , watchAgentMetadata ] )
104
101
105
- return AgentMetadataView ( { metadata } )
102
+ if ( metadata === undefined ) {
103
+ return < CircularProgress size = { 16 } />
104
+ }
105
+
106
+ return < AgentMetadataView metadata = { metadata } />
106
107
}
107
108
108
109
// These are more or less copied from
You can’t perform that action at this time.
0 commit comments