mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 13:23:28 +00:00
Pull kind from non-indexed paths in explorerItem handling (#2002)
This commit is contained in:
parent
cd8d369cec
commit
5fdea8eea6
|
@ -39,6 +39,8 @@ export function getExplorerItemData(data?: ExplorerItem | null): ItemData {
|
|||
const object = getItemObject(data);
|
||||
|
||||
if (object?.kind) itemData.kind = ObjectKind[object?.kind] ?? 'Unknown';
|
||||
else if(data.type === "NonIndexedPath") itemData.kind = ObjectKind[data.item.kind] ?? 'Unknown';
|
||||
|
||||
// Objects only have dateCreated and dateAccessed
|
||||
itemData.dateCreated = object?.date_created ?? null;
|
||||
itemData.dateAccessed = object?.date_accessed ?? null;
|
||||
|
|
Loading…
Reference in a new issue