]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
test(e2e): ensure initial value
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 23 Oct 2020 08:58:48 +0000 (10:58 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Fri, 23 Oct 2020 08:58:48 +0000 (10:58 +0200)
e2e/modal/index.ts

index f2e11fa9744575140fc16ba6647b236315bcbd5c..2987cc66a5f456b1406a9fba4a5e5a7d8b2cd59e 100644 (file)
@@ -16,7 +16,7 @@ const users = readonly([
   { name: 'James' },
 ])
 
-const historyState = ref(history.state)
+const historyState = ref(history.state || {})
 
 async function showUserModal(id: number) {
   // add backgroundView state to the location so we can render a different view from the one