Skip to content

Commit c0222e9

Browse files
author
Pooya Parsa
committed
fix: rc11 backward compability
1 parent c865a3c commit c0222e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/templates/auth.plugin.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ export default async function (context, inject) {
88
})
99

1010
// Backward compability for Nuxt <= RC.11
11-
if (!context.store.app) {
12-
context.store.app = {
13-
context
14-
}
11+
if (!context.store.app.context) {
12+
context.store.app.context = context
1513
}
1614

1715
// Fetch initial state

0 commit comments

Comments
 (0)