Skip to content

Commit

Permalink
lint: run linter
Browse files Browse the repository at this point in the history
  • Loading branch information
edelclaux committed Jun 28, 2024
1 parent 42d3561 commit 2ee8a41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/gn_module_zh/hierarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def __check_if_rules(self):
raise ZHApiError(
message="no_rb_rules",
details="no existing rules for the river basin",
status_code=400
status_code=400,
)
except ZHApiError:
raise
Expand Down
12 changes: 8 additions & 4 deletions frontend/app/services/hierarchy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,13 @@ export class HierarchyService {
closeButton: true,
});
} else if (error.status === 400) {
this._toastr.warning(this._error['errors'].filter(i => error.error['message'] === i.api )[0].front, '', {
closeButton: true,
});
this._toastr.warning(
this._error['errors'].filter((i) => error.error['message'] === i.api)[0].front,
'',
{
closeButton: true,
}
);
}
},
() => {
Expand All @@ -70,7 +74,7 @@ export class HierarchyService {
this.items = [];
return;
}

this.items = [{ name: '', active: true, qualification: '', knowledge: '', note: '' }];

// cat 1
Expand Down

0 comments on commit 2ee8a41

Please sign in to comment.