Record Collection: "..should not be set" what does that mean?


I’m on the Record Collection (Basic Javascript) checkpoint, and I have passed each test except:

“After updateRecords(2548, "artist", "") , artist should not be set”
“After updateRecords(2548, "tracks", "") , tracks should not be set”

What exactly does it want me to do? Does it want me to simply not execute any functions if value = " " OR does it want me to clear any existing code from “Artist” or “Track”? I have managed to do both, and it worked fine in my Codepen, but I’m still not passing the test…

Insight greatly appreciated.

welcome to freecodecamp forum @ab12! :smile:

Those errors are related to the comparison between the expected result and the result obtained running your code^^

More specifically after running the function updateRecords with those arguments ( (2548, "artist", ""), (2548, "tracks", "") ) the field artist (in the first case) and tracks (in the second case) shoudn’t be set ( the argument passed to the related field is an empty string).

If you want some help with the code you can post what you’ve done so far^^
Good luck!

I found the specific hint in the challenge:

If value is empty ( "" ), delete the given prop property from the album.

I solved it! :smile:
Thank you for this feedback, I was staring at my screen too long and overlooked that hint :slight_smile:

1 Like