diff --git a/app/ownedFile.js b/app/ownedFile.js index d6d91a53..04b497d1 100644 --- a/app/ownedFile.js +++ b/app/ownedFile.js @@ -4,6 +4,9 @@ import { del, fileInfo, setParams, setPassword } from './api'; export default class OwnedFile { constructor(obj) { + if (!obj.manifest) { + throw new Error('invalid file object'); + } this.id = obj.id; this.url = obj.url; this.name = obj.name;