From 8fae5343c979d685196ca7016757f7af588e8640 Mon Sep 17 00:00:00 2001 From: Louis-Marie Michelin Date: Tue, 19 May 2020 15:37:49 +0200 Subject: [PATCH] fix: missing renaming --- src/history/abstract.js | 2 +- src/history/base.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/history/abstract.js b/src/history/abstract.js index 9437182e7..1add43d01 100644 --- a/src/history/abstract.js +++ b/src/history/abstract.js @@ -51,7 +51,7 @@ export class AbstractHistory extends History { this.updateRoute(route) }, err => { - if (isRouterError(err, NavigationFailureType.NAVIGATION_DUPLICATED)) { + if (isRouterError(err, NavigationFailureType.duplicated)) { this.index = targetIndex } } diff --git a/src/history/base.js b/src/history/base.js index 2b9d71cae..6911b71f6 100644 --- a/src/history/base.js +++ b/src/history/base.js @@ -114,7 +114,7 @@ export class History { // When the user navigates through history through back/forward buttons // we do not want to throw the error. We only throw it if directly calling // push/replace. That's why it's not included in isError - if (!isRouterError(err, NavigationFailureType.NAVIGATION_DUPLICATED) && isError(err)) { + if (!isRouterError(err, NavigationFailureType.duplicated) && isError(err)) { if (this.errorCbs.length) { this.errorCbs.forEach(cb => { cb(err)