fix: value change not set

pull/21369/head
Joel 1 year ago
parent 3e762426dd
commit 15840f554a

@ -150,7 +150,6 @@ const useInspectVarsCrud = () => {
}, [data, currNodeId, currEditVarId, getNodeInspectVars, editInspectVarValue])
const renameInspectVarName = async (nodeId: string, oldName: string, newName: string) => {
console.log('rename:', nodeId, oldName, newName)
const varId = getVarId(nodeId, oldName)
if (!varId)
return

@ -73,7 +73,7 @@ const ValueContent = ({
? [currentVar.value]
: [])
}
}, [currentVar.id])
}, [currentVar.id, currentVar.value])
const handleTextChange = (value: string) => {
if (currentVar.value_type === 'string')

Loading…
Cancel
Save