We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e5cae6 commit 9282765Copy full SHA for 9282765
assets/js/item.js
@@ -8,7 +8,7 @@
8
path: path || [],
9
type: 'file',
10
size: 0,
11
- date: new Date(model.date && Date.parse(model.date.replace('-','/','g'))),
+ date: new Date(model && model.date && Date.parse(model.date.replace('-','/','g'))),
12
perms: new Chmod(model && model.rights),
13
content: '',
14
recursive: false,
@@ -297,4 +297,4 @@
297
298
return Item;
299
}]);
300
-})(window, angular, jQuery);
+})(window, angular, jQuery);
0 commit comments