mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
improve code
This commit is contained in:
parent
1fa8831110
commit
32aa5892a6
@ -32,8 +32,7 @@ export const mutations = {
|
|||||||
},
|
},
|
||||||
TOGGLE_FILTER_BY_MY_GROUPS(state) {
|
TOGGLE_FILTER_BY_MY_GROUPS(state) {
|
||||||
const filter = clone(state.filter)
|
const filter = clone(state.filter)
|
||||||
const status = get(filter, 'postsInMyGroups')
|
if (get(filter, 'postsInMyGroups')) {
|
||||||
if (status) {
|
|
||||||
delete filter.postsInMyGroups
|
delete filter.postsInMyGroups
|
||||||
state.filter = filter
|
state.filter = filter
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user