My project is utilizing Vue.
The store.state.activities
object contains 2 keys, including an array named list
with 3 elements.
However, despite attempting to access it using store.state.activities.list
, I am getting an empty array.
I have experimented with creating both shallow and deep copies of store.state.activities
, but in each instance, the copied version has an empty list
array as well.
This is the structure of store.state.activities
:
{
"list": [
{
// some data
},
{
// some data
},
{
// some data
}
],
"dictionaries": {}
}
Upon inspecting store.state.activities
using
console.log(store.state.activities)
, it shows that list
consists of 3 items:
https://i.sstatic.net/yWMUD.png
Whereas accessing store.state.activities.list
results in an empty array being displayed:
https://i.sstatic.net/Zthts.png