Fix role CRUD

This commit is contained in:
Andrew Kingston 2024-09-11 15:55:48 +01:00
parent a81d9c6dd1
commit de7604f8fd
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -29,12 +29,12 @@
let tempColor
const deleteNode = async () => {
await roles.delete(nodeToRole({ id, data }))
flow.deleteElements({
nodes: [{ id }],
})
await tick()
doAutoLayout()
await roles.delete(nodeToRole({ id, data }))
}
const openPopover = () => {
@ -45,12 +45,12 @@
}
const saveChanges = async () => {
await roles.save(nodeToRole({ id, data }))
flow.updateNodeData(id, {
displayName: tempDisplayName,
description: tempDescription,
color: tempColor,
})
await roles.save(nodeToRole({ id, data }))
}
const doAutoLayout = () => {