Skip to content

Commit

Permalink
Merge pull request #607 from lblod/GN-4599-document-not-saved-even-th…
Browse files Browse the repository at this point in the history
…ough-it-is-saved

GN-4599: prevent confirmation dialog from popping up twice.
  • Loading branch information
abeforgit authored Nov 23, 2023
2 parents f29003c + e127647 commit 40a7658
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-spies-clean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frontend-gelinkt-notuleren": patch
---

Update regex in `isLoadingRoute` function to take underscore syntax into account
2 changes: 1 addition & 1 deletion app/utils/is-loading-route.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default function isLoadingRoute(routeInfo) {
const regex = new RegExp('^(.+-loading|loading)$');
const regex = new RegExp('^(.+(-|_)loading|loading)$');
return regex.test(routeInfo.localName);
}

0 comments on commit 40a7658

Please sign in to comment.