mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
Remove trailing spaces
This commit is contained in:
parent
30136c4e97
commit
5ba15ef350
@ -6,15 +6,15 @@ export default function init(ngModule) {
|
||||
ngModule.filter('dateTime', clientConfig =>
|
||||
function dateTime(value) {
|
||||
if (!value) {
|
||||
return '';
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
const parsed = moment(value);
|
||||
|
||||
|
||||
if (!parsed.isValid()) {
|
||||
return '-';
|
||||
return '-';
|
||||
}
|
||||
|
||||
|
||||
return parsed.format(clientConfig.dateTimeFormat);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user