Skip to content

Commit

Permalink
fix: test history add error
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Apr 28, 2022
1 parent 739e263 commit 4d02e95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,6 @@ export class ApiTestHistoryComponent implements OnInit {

private parseItem(item) {
item.codeClass = this.apiTest.getHTTPStatus(item.response.statusCode).fontClass;
item.testTime = formatDate(item.createdAt, 'YYYY-MM-dd HH:mm:ss', this.locale);
item.testTime = formatDate(item.createdAt||new Date(), 'YYYY-MM-dd HH:mm:ss', this.locale);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,5 @@ export const eoFormatResponseData = ({type,report, history, id }) => {
value: val.value,
}));
}
console.log(JSON.stringify(result))
return result;
};

1 comment on commit 4d02e95

@vercel
Copy link

@vercel vercel bot commented on 4d02e95 Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

eoapi-demo – ./

eoapi-demo.vercel.app
demo.eoapi.io
eoapi-demo-eolinker.vercel.app
eoapi-demo-git-web-eolinker.vercel.app

Please sign in to comment.