Skip to content

Commit f9d4e38

Browse files
committed
fix: if file.document
1 parent 450aad4 commit f9d4e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class CoCreateFileSystem {
6161
organization_id
6262
});
6363

64-
if (!file || !file.document[0])
64+
if (!file || !file.document || !file.document[0])
6565
return res.status(404).send(`${url} could not be found for ${organization_id} `);
6666

6767
file = file.document[0]

0 commit comments

Comments
 (0)