chore: put new run var to the top (#21816)

This commit is contained in:
Joel 2025-07-02 15:56:22 +08:00 committed by GitHub
parent 826bf25abf
commit 0c39490bb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -127,6 +127,8 @@ const useInspectVarsCrud = () => {
}
else {
draft[index].vars = payload
// put the node to the top
draft.unshift(draft.splice(index, 1)[0])
}
}
})