0👍
Because stations
data was using in somewhere. I think you are using something like v-for"item in stations" :key="item.id"
. When you commit('SET_STATIONS', res.data)
, it changed stations
. And it have duplicate id
.
Source:stackexchange.com