refactor: specify data type in map

main
Josue 4 years ago committed by Tsu-ba-me
parent cf77395bf3
commit cf417c5ee9
  1. 2
      striker-ui/components/SharedStorage.tsx

@ -22,7 +22,7 @@ const SharedStorage = ({ anvil }: { anvil: AnvilListItem }): JSX.Element => {
<Grid item xs={12}> <Grid item xs={12}>
{data && {data &&
data.file_systems[0]?.nodes.map( data.file_systems[0]?.nodes.map(
(node: AnvilSharedStorageNode, index: number) => ( (node: AnvilSharedStorageNode, index: number): JSX.Element => (
<SharedStorageNode <SharedStorageNode
node={{ ...node, nodeInfo: anvil.nodes[index] }} node={{ ...node, nodeInfo: anvil.nodes[index] }}
key={anvil.nodes[index].node_uuid} key={anvil.nodes[index].node_uuid}

Loading…
Cancel
Save