We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Object.keys(errors).length !== 0
1 parent e7a337a commit 6913885Copy full SHA for 6913885
site/frontend/src/pages/status_new/page.vue
@@ -99,13 +99,7 @@ function formatStatus(status: BenchmarkRequestStatus): string {
99
}
100
101
function hasErrors(errors: Dict<string>) {
102
- // This is a bit odd but if the error object has values the loop will be
103
- // hit and thus return true.
104
- for (const key in errors) {
105
- console.log(key);
106
- return true;
107
- }
108
- return false;
+ return Object.keys(errors).length !== 0;
109
110
111
function getErrorsLength(errors: Dict<string>) {
0 commit comments