#searchBookByTitle, filtering on title with spring

1 messages · Page 1 of 1 (latest)

keen plover
#

So i basically have to filter on the title of a book on this site
i made these functions but i cannot see the reason for the errors on the console on the site. im not allowed to change the javascript btw

light ginkgoBOT
#

This post has been reserved for your question.

Hey @keen plover! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

keen plover
#

console returns it

#

so basically only that book should be displayed there

#

this is the java for that error

#

I tried several things but im really confused what i need to focus on

chrome condor
#

The spread operator in js requires an iterable to spread

#

Since you're returning a single object, that's not iterable and you get an error

#

So return a list of objects

keen plover
#

indeed, i had to retur na list

#

I made it into a list, and it worked

#

thank you !

light ginkgoBOT
# keen plover thank you !

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.