diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-12-11 14:07:51 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-12-11 14:07:51 +0900 |
| commit | b83fc7989cf34c4764f7f5b14969707bd78c6ee2 (patch) | |
| tree | 7389d3ef09925789dbe71cda2bf0504d6b32ac59 /src/api | |
| parent | :v: (diff) | |
| download | sharkey-b83fc7989cf34c4764f7f5b14969707bd78c6ee2.tar.gz sharkey-b83fc7989cf34c4764f7f5b14969707bd78c6ee2.tar.bz2 sharkey-b83fc7989cf34c4764f7f5b14969707bd78c6ee2.zip | |
:v:
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/serializers/drive-file.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/serializers/drive-file.ts b/src/api/serializers/drive-file.ts index 92a9492d86..003e09ee77 100644 --- a/src/api/serializers/drive-file.ts +++ b/src/api/serializers/drive-file.ts @@ -56,6 +56,8 @@ export default ( _target.url = `${config.drive_url}/${_target.id}/${encodeURIComponent(_target.name)}`; + if (_target.properties == null) _target.properties = {}; + if (opts.detail) { if (_target.folder_id) { // Populate folder |