Skip to content

Commit

Permalink
fix/error-history
Browse files Browse the repository at this point in the history
  • Loading branch information
Damilola Debel committed May 18, 2024
1 parent dbbcdf6 commit 4c6d5b8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/pages/error-history/error-history.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ export class ErrorHistoryPage implements OnInit {

async updateList() {
const logger = new LocalErrorLogger()
this.errorHistory = await (
await logger.getErrorHistory()
).map((error) => ({
this.errorHistory = await (await logger.getErrorHistory()).map((error) => ({
date: error[4],
title: error[2].split('\n')[0],
title: error[2] ? error[2].split('\n')[0] : '',
detail: error[2],
expanded: false
}))
Expand Down

0 comments on commit 4c6d5b8

Please sign in to comment.