17305: Added unit tests
[arvados-workbench2.git] / src / views-components / data-explorer / renderers.tsx
index 4ec0734442644d0168a9edc18fc0860950113303..0e3eefe231671e470075090d9f0c064b6d40bdc1 100644 (file)
@@ -418,7 +418,7 @@ export const ResourceFileSize = connect(
     (state: RootState, props: { uuid: string }) => {
         const resource = getResource<CollectionResource>(props.uuid)(state.resources);
 
-        if (resource && resource.kind === ResourceKind.COLLECTION) {
+        if (resource && resource.kind !== ResourceKind.COLLECTION) {
             return { fileSize: '' };
         }