projects
/
arvados-workbench2.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '14644-nanh-nanm-in-subprocess-view'
[arvados-workbench2.git]
/
src
/
common
/
formatters.ts
diff --git
a/src/common/formatters.ts
b/src/common/formatters.ts
index 5383c66e949f59ee1b2d1258f0d2d1402f485bdb..60e6cd59c53e284a929cd6143c618020537ffd3a 100644
(file)
--- a/
src/common/formatters.ts
+++ b/
src/common/formatters.ts
@@
-4,13
+4,13
@@
import { PropertyValue } from "~/models/search-bar";
import { PropertyValue } from "~/models/search-bar";
-export const formatDate = (isoDate?: string) => {
+export const formatDate = (isoDate?: string
| null
) => {
if (isoDate) {
const date = new Date(isoDate);
const text = date.toLocaleString();
if (isoDate) {
const date = new Date(isoDate);
const text = date.toLocaleString();
- return text === 'Invalid Date' ? "" : text;
+ return text === 'Invalid Date' ? "
(none)
" : text;
}
}
- return "";
+ return "
(none)
";
};
export const formatFileSize = (size?: number) => {
};
export const formatFileSize = (size?: number) => {