Fix var not updating

This commit is contained in:
kwaroran
2024-04-10 12:16:00 +09:00
parent 1d368ddc3c
commit 408bbbd2e6
3 changed files with 12 additions and 13 deletions

View File

@@ -146,10 +146,11 @@ CurrentChat.subscribe((chat) => {
}
const variablePointer = get(CurrentVariablePointer)
const currentState = chat.scriptstate
const currentState = structuredClone(chat?.scriptstate)
if(!isEqual(variablePointer, currentState)){
CurrentVariablePointer.set(currentState)
console.log(currentState)
}
})