diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/System/Files/Explorer.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/web/src/components/System/Files/Explorer.jsx b/src/web/src/components/System/Files/Explorer.jsx index 543c0744..ca0bdba1 100644 --- a/src/web/src/components/System/Files/Explorer.jsx +++ b/src/web/src/components/System/Files/Explorer.jsx @@ -180,8 +180,8 @@ const Explorer = ({ remoteFileManagement, root }) => { sensitivity: 'base', }); } else if (sortColumn === 'date') { - const dateA = new Date(a.modifiedAt); - const dateB = new Date(b.modifiedAt); + const dateA = a.modifiedAt ? new Date(a.modifiedAt) : new Date(0); + const dateB = b.modifiedAt ? new Date(b.modifiedAt) : new Date(0); compareValue = dateA - dateB; } |
