aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/core/rest/rest-extractor.service.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/app/core/rest/rest-extractor.service.ts b/client/src/app/core/rest/rest-extractor.service.ts
index 57dd9ae26..de3f2bfff 100644
--- a/client/src/app/core/rest/rest-extractor.service.ts
+++ b/client/src/app/core/rest/rest-extractor.service.ts
@@ -37,6 +37,8 @@ export class RestExtractor {
37 37
38 convertDateToHuman (target: any, fieldsToConvert: string[], format?: DateFormat) { 38 convertDateToHuman (target: any, fieldsToConvert: string[], format?: DateFormat) {
39 fieldsToConvert.forEach(field => { 39 fieldsToConvert.forEach(field => {
40 if (!target[field]) return
41
40 target[field] = dateToHuman(this.localeId, new Date(target[field]), format) 42 target[field] = dateToHuman(this.localeId, new Date(target[field]), format)
41 }) 43 })
42 44