Skip to content

Commit 147679d

Browse files
committed
Merge pull request #18 from paolobiavati/fix-item-date-parse
fixed-parsing-date
2 parents fc09c25 + 940f51f commit 147679d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/item.js

Lines changed: 1 addition & 1 deletion
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,

0 commit comments

Comments
 (0)