0👍
when you are calling the reset()
.
store.commit('SearchResult',[])
executing with an empty array,
but into setResults:(state, results)
, here results
is an empty array so results has no siteList
attribute. so this is the cause of error.
so consider the setResults
function code when results
is an empty array.
- [Vuejs]-Is there a way to add white space before and after x-axis in an apex chart?
- [Vuejs]-V-if not updating in vue from radiobuttons toggling value
Source:stackexchange.com