feat: feature/mvp-sprint-1 Fixed setThingtime bug when updating value on thingtime root
This commit is contained in:
parent
cda2a88ba3
commit
200cb94321
@ -145,15 +145,20 @@ export const ThingtimeProvider = (props: any): JSX.Element => {
|
||||
}
|
||||
})
|
||||
|
||||
newThingtime.thingtime = newThingtime
|
||||
newThingtime.tt = newThingtime
|
||||
|
||||
console.log(
|
||||
"nik setting newThingtime value at path",
|
||||
path,
|
||||
'"' + path + '"',
|
||||
"value: ",
|
||||
value
|
||||
)
|
||||
|
||||
smarts.setsmart(newThingtime, path, value)
|
||||
|
||||
console.log("nik set the newThingtime", newThingtime)
|
||||
|
||||
set(newThingtime)
|
||||
},
|
||||
[thingtime, set]
|
||||
|
@ -18,6 +18,8 @@ export const ThingtimeURL = (props) => {
|
||||
|
||||
const path = pathPartOne?.replace(/\//g, ".")
|
||||
|
||||
console.log("nik Detected path in url", path)
|
||||
|
||||
return path
|
||||
}, [location])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user