Remove 'url' as a required field on Files when they are stored on object.

This commit is contained in:
Nikita Lutsenko
2016-02-25 17:50:19 -08:00
parent 1945313794
commit a96cb6b31d
2 changed files with 19 additions and 2 deletions

View File

@@ -728,7 +728,7 @@ function getObjectType(obj) {
if (obj.__type === 'Pointer' && obj.className) {
return '*' + obj.className;
}
if (obj.__type === 'File' && obj.url && obj.name) {
if (obj.__type === 'File' && obj.name) {
return 'file';
}
if (obj.__type === 'Date' && obj.iso) {