sonar bugs fixed
diff --git a/projects/grid-failure-information-table-app/src/app/app.component.ts b/projects/grid-failure-information-table-app/src/app/app.component.ts
index 6e16b23..f9f6fa6 100644
--- a/projects/grid-failure-information-table-app/src/app/app.component.ts
+++ b/projects/grid-failure-information-table-app/src/app/app.component.ts
@@ -93,8 +93,7 @@
   private _getLastModeDate(): number {
     if (!!this._gridFailuresAll && this._gridFailuresAll.length > 0) {
       const modeDates: number[] = this._gridFailuresAll.map(gf => Date.parse(gf.modDate));
-      const sortedModeDates = modeDates.sort((a, b) => b - a); // sort timestamps descending
-      return sortedModeDates[0];
+      return modeDates.sort((a, b) => b - a)[0] || 0;
     }
   }
 }