Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
fix: fix state.friends was null
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazyokd committed Apr 29, 2023
1 parent 09b34c9 commit 42dfde5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/store/mutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ export default {
Vue.set(state.messages, mk, ms)
},
SET_CREATE_GROUPS(state, groups) {
state.createGroups = groups;
state.createGroups = groups ?? [];
},
SET_JOIN_GROUPS(state, groups) {
state.joinGroups = groups;
state.joinGroups = groups ?? [];
},
SET_FRIENDS(state, friends) {
state.friends = friends;
state.friends = friends ?? [];
},
};

0 comments on commit 42dfde5

Please sign in to comment.