error if file from localStorage is old (no manifest)
This commit is contained in:
parent
c908f0a927
commit
0c458e180c
@ -4,6 +4,9 @@ import { del, fileInfo, setParams, setPassword } from './api';
|
|||||||
|
|
||||||
export default class OwnedFile {
|
export default class OwnedFile {
|
||||||
constructor(obj) {
|
constructor(obj) {
|
||||||
|
if (!obj.manifest) {
|
||||||
|
throw new Error('invalid file object');
|
||||||
|
}
|
||||||
this.id = obj.id;
|
this.id = obj.id;
|
||||||
this.url = obj.url;
|
this.url = obj.url;
|
||||||
this.name = obj.name;
|
this.name = obj.name;
|
||||||
|
Loading…
Reference in New Issue
Block a user