[Vuejs]-Why is this computed() supposed to filter a listof items if anything is writen in a text input not working?

4👍

You forgot a return statement on line:

unpackedItemsArray.value.filter( val => val == filterText.value)

You should change it to:

return unpackedItemsArray.value.filter( val => val == filterText.value)

0👍

From the code I’m seeing here, i don’t think the variable unpackedItemsArray is defined. That could be the p

Leave a comment