{
size={230}
kind={ObjectKind[objectData?.kind || 0]}
className="flex flex-grow-0 flex-shrink bg-green-500"
- data={props.data}
+ data={data}
/>
- {props.data?.name}
- {props.data?.extension && `.${props.data.extension}`}
+ {item?.name}
+ {item?.extension && `.${item.extension}`}
{objectData && (
@@ -106,10 +106,10 @@ export const Inspector = (props: Props) => {
)}
- {props.context?.type == 'Location' && props.data?.type === 'Path' && (
+ {context?.type == 'Location' && data?.type === 'Path' && (
URI
- {`${props.context.local_path}/${props.data.materialized_path}`}
+ {`${context.local_path}/${data.item.materialized_path}`}
)}
@@ -117,7 +117,7 @@ export const Inspector = (props: Props) => {
{isDir ? 'Folder' : ObjectKind[objectData?.kind || 0]}
- {props.data.extension &&
{props.data.extension}}
+ {item &&
{item.extension}}
{tags?.data?.map((tag) => (
{
-
+
Created
- {dayjs(props.data?.date_created).format('MMM Do YYYY')}
+ {dayjs(item?.date_created).format('MMM Do YYYY')}
-
+
Indexed
- {dayjs(props.data?.date_indexed).format('MMM Do YYYY')}
+ {dayjs(item?.date_indexed).format('MMM Do YYYY')}
- {!is_dir && objectData && (
+ {!isDir && objectData && (
<>
-
+
Content ID
- {objectData?.cas_id || ''}
+ {filePathData?.cas_id || ''}
- {objectData?.integrity_checksum && (
-
+ {filePathData?.integrity_checksum && (
+
Checksum
- {objectData.integrity_checksum}
+ {filePathData?.integrity_checksum}
)}
diff --git a/packages/interface/src/components/explorer/VirtualizedList.tsx b/packages/interface/src/components/explorer/VirtualizedList.tsx
index 6fa443aa4..c121515b1 100644
--- a/packages/interface/src/components/explorer/VirtualizedList.tsx
+++ b/packages/interface/src/components/explorer/VirtualizedList.tsx
@@ -183,7 +183,7 @@ const WrappedItem = memo(({ item, index, isSelected, kind }: WrappedItemProps) =
const [_, setSearchParams] = useSearchParams();
const onDoubleClick = useCallback(() => {
- if (isPath(item) && item.is_dir) setSearchParams({ path: item.materialized_path });
+ if (isPath(item) && item.item.is_dir) setSearchParams({ path: item.item.materialized_path });
}, [item, setSearchParams]);
const onClick = useCallback(() => {