We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f27e529 commit b0f09bbCopy full SHA for b0f09bb
src/helpers/driveItems.ts
@@ -13,10 +13,10 @@ export const checkIsFolder = (
13
): boolean => {
14
if (!item) return false;
15
16
- if ('isFolder' in item && typeof item.isFolder === 'boolean') {
17
- return item.isFolder;
+ if ('isFolder' in item) {
+ return !!item.isFolder;
18
}
19
-
+ // Only folders have parentUuid
20
if ('parentUuid' in item && item.parentUuid) return true;
21
22
return false;
0 commit comments