wangcz 7 lat temu
rodzic
commit
cc9fb9fc72
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      store/product/kind.js

+ 1 - 2
store/product/kind.js

@@ -49,8 +49,7 @@ export const mutations = {
   GET_KIND_SUCCESS (state, action) {
   GET_KIND_SUCCESS (state, action) {
     if (!action.id) {
     if (!action.id) {
       state.kinds.fetching = false
       state.kinds.fetching = false
-      let list = action.result || []
-      list.forEach(kind => {
+      action.result.forEach(kind => {
         kind.fetching = false
         kind.fetching = false
       })
       })
       state.kinds.data = action.result
       state.kinds.data = action.result