Skip to content

Getter for testing presence of items in an array always false #2095

Closed Answered by ProNotion
ProNotion asked this question in Help and Questions
Discussion options

You must be logged in to vote

I've realised the error of my ways and it's nothing to do with Pinia and everything to do with a mistake I made in accessing items in the array.

Should be:

state.processQueue.find(q => q.name === 'loading');

instead of

state.processQueue['loading']

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ProNotion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant