Update specific items from dataset

Hey guys I'm trying to update some values from a dynamic dataset as soon as they are created,
for some reason it is not working. Some help will be much appreciated!
$w.onReady(function () {
    $w("#dataset1").onAfterSave(() => {
        wixData.aggregate("Alquileres")
            .run()
            .then((results) => {
                if (results.items.length > 0) {
                    let items = results.items; 
                    let ur = "https://veganflat.com/alquileres/"
                    let icon = 
"https://static.wixstatic.com/media/5b7658_2cb213baa50f4d0382725c74aae58840~mv2.png"
                    let iterator = items.values()
                    for (let item of iterator) {
                        console.log(item)
                        let ref = item['title']
                        let id = item._id
                        let nref = ref.replace(/ /g, "-")
                        let nurl = ur.concat(nref)
                        console.log(nurl)
                        wixData.get("Alquileres", id)
                            item.icon = icon;
                            item.maplocations = nurl;
                            wixData.update("Alquileres", item);

                    }
                }
            })
    });

I’m getting this error in the browser console ;
bolt-worker.js:18 Wix code SDK error: The url parameter that is passed to the to method cannot be set to the value . It must be of type string.

Hi,
it’s possible that the type of the “nurl” variable is not a string. I’d recommend stringifying it before passing to update the database.

If the issue persists, please send a link to the page with the issue for further investigation.

Hey Aleks!
Thanks for your reply, but it is still not working
here is the url https://www.veganflat.com/agregar-habitacion

I checked and all the values passed are strings so i don’t understand the error.
Any suggestions will be welcome!