Skip to content

Commit

Permalink
fix(vue2): subscribeAction might be null, close #1695
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Feb 9, 2022
1 parent d35a998 commit 7bf86e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app-backend-vue2/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function setupPlugin (api: DevtoolsApi, app: App, Vue) {
})
})

store.subscribeAction({
store.subscribeAction?.({
before: (action, state) => {
const data: any = {}
if (action.payload) {
Expand Down

0 comments on commit 7bf86e5

Please sign in to comment.