mirror of
https://github.com/ansible/awx.git
synced 2024-11-01 08:21:15 +03:00
"Invalid Date" fix for jobs page
returning an empty string for when the date format filter receives a null object
This commit is contained in:
parent
633647a2a8
commit
540308a9b4
@ -5,8 +5,13 @@
|
||||
*************************************************/
|
||||
|
||||
function longDateFilter(moment, input) {
|
||||
var date = moment(input);
|
||||
return date.format('l LTS');
|
||||
var date;
|
||||
if(input === null){
|
||||
return "";
|
||||
}else {
|
||||
date = moment(input);
|
||||
return date.format('l LTS');
|
||||
}
|
||||
}
|
||||
|
||||
angular.module('longDateFilter', [])
|
||||
|
Loading…
Reference in New Issue
Block a user