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