filtered out objects in objects tab without thumbnails

This commit is contained in:
Victor committed 2024-04-22 14:23:32 -07:00
1 parent a918d92e45
commit fd68d43392
1 file changed
+3
@@ -66,6 +66,7 @@ export const ObjectsTab = ({ type }: Props) => {
} : {}
}
})
.filter((item,i) => (item.thumbnail))
});
}
});
@@ -76,6 +77,8 @@ export const ObjectsTab = ({ type }: Props) => {
type === AssetType.CHARACTER ? characterFilter : objectFilter;
const items = type === AssetType.CHARACTER ? characterItems : objects;
console.log("😎",objects);
return (
<>
<div className="w-full overflow-x-auto">