@simonbackx/vue-app-navigation 2.14.0 → 2.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -384,7 +384,11 @@ class HistoryManagerStatic {
|
|
|
384
384
|
state.title = title;
|
|
385
385
|
} else {
|
|
386
386
|
const state = this.states[index];
|
|
387
|
-
if (!state
|
|
387
|
+
if (!state) {
|
|
388
|
+
console.error("Search state with index ", index, "not found");
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
if (state.index !== index) {
|
|
388
392
|
console.error("Search state with index ", index, "but received state with index", state.index);
|
|
389
393
|
return;
|
|
390
394
|
}
|