diff options
| author | otofune <otofune@gmail.com> | 2017-11-06 16:11:24 +0900 |
|---|---|---|
| committer | otofune <otofune@gmail.com> | 2017-11-06 16:11:24 +0900 |
| commit | b266ed3e4f98ab16d95e52cff517d6519b78742a (patch) | |
| tree | dc5a65e26e970a17979e6193f877621c965fe831 /src/api | |
| parent | fix (diff) | |
| download | sharkey-b266ed3e4f98ab16d95e52cff517d6519b78742a.tar.gz sharkey-b266ed3e4f98ab16d95e52cff517d6519b78742a.tar.bz2 sharkey-b266ed3e4f98ab16d95e52cff517d6519b78742a.zip | |
fix
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/serializers/drive-file.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/serializers/drive-file.ts b/src/api/serializers/drive-file.ts index 9858c3b3c7..e749f80387 100644 --- a/src/api/serializers/drive-file.ts +++ b/src/api/serializers/drive-file.ts @@ -25,8 +25,6 @@ export default ( detail: false }, options); - if (!file) return reject('invalid file arg.') - let _file: any; // Populate the file if 'file' is ID @@ -42,6 +40,8 @@ export default ( _file = deepcopy(file); } + if (!_file) return reject('invalid file arg.') + // rendered target let _target: any = {}; |