Skip to content

Commit

Permalink
avoid crash if external changes are missing change times for some reason
Browse files Browse the repository at this point in the history
fixes #1034
  • Loading branch information
TanninOne committed Jan 25, 2019
1 parent e741f67 commit 7294e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/extensions/mod_management/views/ExternalChangeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,14 +357,14 @@ class ExternalChangeDialog extends ComponentEx<IProps, IComponentState> {
id: 'staged_changed',
name: 'Staged file modified',
description: 'Last time the stage file (the one in the mod staging folder) was modified',
calc: (file: IFileEntry, t) => file.sourceModified.toLocaleString(),
calc: (file: IFileEntry, t) => (file.sourceModified !== undefined) ? file.sourceModified.toLocaleString() : '',
placement: 'table',
edit: {},
}, {
id: 'deployment_changed',
name: 'Deployed file modified',
description: 'Last time the deployed file (the one in the game folder) was modified',
calc: (file: IFileEntry) => file.destModified.toLocaleString(),
calc: (file: IFileEntry) => (file.destModified !== undefined) ? file.destModified.toLocaleString() : '',
placement: 'table',
edit: {},
}, {
Expand Down

0 comments on commit 7294e18

Please sign in to comment.