From 341a4ad50a2ecf479ecc0ae213da0bc392758c25 Mon Sep 17 00:00:00 2001 From: Josue Date: Tue, 1 Jun 2021 14:07:06 -0400 Subject: [PATCH] fix: change data types in fileSystem to avoid crashing during building process --- striker-ui/components/FileSystem/FileSystems.tsx | 4 ++-- striker-ui/components/FileSystem/FileSystemsHost.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/striker-ui/components/FileSystem/FileSystems.tsx b/striker-ui/components/FileSystem/FileSystems.tsx index 3a8e0ea6..aed6b43f 100644 --- a/striker-ui/components/FileSystem/FileSystems.tsx +++ b/striker-ui/components/FileSystem/FileSystems.tsx @@ -37,7 +37,7 @@ const SharedStorage = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { {data?.file_systems && data.file_systems.map( - (fs: AnvilSharedStorageFileSystem): JSX.Element => ( + (fs: AnvilFileSystem): JSX.Element => ( @@ -49,7 +49,7 @@ const SharedStorage = ({ anvil }: { anvil: AnvilListItem[] }): JSX.Element => { {fs?.hosts && fs.hosts.map( ( - host: AnvilSharedStorageHost, + host: AnvilFileSystemHost, index: number, ): JSX.Element => ( ({ const SharedStorageHost = ({ host, }: { - host: AnvilSharedStorageHost; + host: AnvilFileSystemHost; }): JSX.Element => { const classes = useStyles(); return (