feat: feature/mvp-sprint-1 Fixed setThingtime bug when updating value on thingtime root

This commit is contained in:
Nikolaj Frey 2023-07-24 11:45:32 +10:00
parent cda2a88ba3
commit 200cb94321
2 changed files with 8 additions and 1 deletions

View File

@ -145,15 +145,20 @@ export const ThingtimeProvider = (props: any): JSX.Element => {
} }
}) })
newThingtime.thingtime = newThingtime
newThingtime.tt = newThingtime
console.log( console.log(
"nik setting newThingtime value at path", "nik setting newThingtime value at path",
path, '"' + path + '"',
"value: ", "value: ",
value value
) )
smarts.setsmart(newThingtime, path, value) smarts.setsmart(newThingtime, path, value)
console.log("nik set the newThingtime", newThingtime)
set(newThingtime) set(newThingtime)
}, },
[thingtime, set] [thingtime, set]

View File

@ -18,6 +18,8 @@ export const ThingtimeURL = (props) => {
const path = pathPartOne?.replace(/\//g, ".") const path = pathPartOne?.replace(/\//g, ".")
console.log("nik Detected path in url", path)
return path return path
}, [location]) }, [location])