Skip to content

Commit 9282765

Browse files
committed
Update item.js
1 parent 1e5cae6 commit 9282765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/js/item.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
path: path || [],
99
type: 'file',
1010
size: 0,
11-
date: new Date(model.date && Date.parse(model.date.replace('-','/','g'))),
11+
date: new Date(model && model.date && Date.parse(model.date.replace('-','/','g'))),
1212
perms: new Chmod(model && model.rights),
1313
content: '',
1414
recursive: false,
@@ -297,4 +297,4 @@
297297

298298
return Item;
299299
}]);
300-
})(window, angular, jQuery);
300+
})(window, angular, jQuery);

0 commit comments

Comments
 (0)