wangcz пре 7 година
родитељ
комит
cc9fb9fc72
1 измењених фајлова са 1 додато и 2 уклоњено
  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) {
     if (!action.id) {
       state.kinds.fetching = false
-      let list = action.result || []
-      list.forEach(kind => {
+      action.result.forEach(kind => {
         kind.fetching = false
       })
       state.kinds.data = action.result