Skip to content

Commit

Permalink
fix: if condition typo
Browse files Browse the repository at this point in the history
Fixes #425
  • Loading branch information
arildm committed Jan 22, 2025
1 parent ee1ebec commit a64ab7f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

### Fixed

- Assignment typo in if condition causes error when aborting statistics request [#425](https://github.com/spraakbanken/korp-frontend/issues/425)
- Simple search options were not properly synced from URL params

## [9.8.0] - 2025-01-20
Expand Down
2 changes: 1 addition & 1 deletion app/scripts/controllers/statistics_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ angular.module("korpApp").directive("statsResultCtrl", () => ({
)
.catch((error) => {
// AbortError is expected if a new search is made before the previous one is finished
if ((error.name = "AbortError")) return
if (error.name == "AbortError") return
console.error(error)
// TODO Show error
$timeout(() => {
Expand Down

0 comments on commit a64ab7f

Please sign in to comment.