Skip to content

Commit

Permalink
Do not allow convert attribute into entity (#3569)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Ricci <[email protected]>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 20, 2024
1 parent 22e16ad commit 321acc5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export const NodeDefConversionDialog = (props) => {
const nodeDefName = NodeDef.getName(nodeDef)
const nodeDefType = NodeDef.getType(nodeDef)

const availableToTypes = Object.values(NodeDef.nodeDefType).filter((type) => type != NodeDef.getType(nodeDef))
const availableToTypes = Object.values(NodeDef.nodeDefType).filter(
(type) => ![NodeDef.nodeDefType.entity, NodeDef.getType(nodeDef)].includes(type)
)
const confirmButtonDisabled = !selectedToType

return (
Expand Down

0 comments on commit 321acc5

Please sign in to comment.