Skip to content

Commit 31c04ae

Browse files
committed
todo: reset categories while loading new
1 parent b0c39b1 commit 31c04ae

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/vuex/modules/category/actions.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ const getCategory = ({commit, state, dispatch}, params) => {
2222
params.page = 1
2323
}
2424

25-
if (typeof window !== 'undefined') {
26-
state.categories = []
27-
state.single = {}
28-
}
25+
// TODO: Reset categories, single while loading new ones
26+
// if (typeof window !== 'undefined') {
27+
// state.categories = []
28+
// state.single = {}
29+
// }
2930

3031
return new Promise((resolve, reject) => {
3132
wordpressService.getCategory(null, params.categorySlug, params.parentId).then((responseCategories) => {

0 commit comments

Comments
 (0)