Record Collection Test issue HALP?

Howdy peeps,
I have completed the challenge (as far as I can tell?) but I have 1 test that refuses to budge (even though the collection is showing as correct once I console.log it out.)

is this me missing something obvious ? or did I break something :frowning:

function updateRecords(object, id, prop, value) {
    if (!value){
        delete object[id][prop]
        return object
    } else {
          if (prop !== "tracks"){
            object[id][prop] = value
        } else {
          if(!collection[id].hasOwnProperty("tracks")) object[id].tracks = []
    return object;

NM, I deleted a copy of that specific test I had inside the code area? and it then allowed me past.

unsure if that is a bug in and of itself though? :thinking:

just for your info, I had this at the bottom of the code so I could manually show the
code output in the console without running the tests.

updateRecords(collection, 5439, "tracks", "Take a Chance on Me")

still a mention of collection here, change that and it should pass even with the function call

1 Like

thanks Ieahleen!
I guess thats what happens when you are coding between an ide and a website :woozy_face:

anyways… thanks again! :smiley: