Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Adds check if resolver has isCanvas set (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
matdru authored Apr 14, 2020
1 parent 3c7d13f commit 844c6bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/utils/createNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export function createNode(
node.data.displayName = actualType.craft.name;
}

if (actualType.craft.isCanvas) {
node.data.isCanvas = true;
}

if (actualType.craft.rules) {
Object.keys(actualType.craft.rules).forEach((key) => {
if (["canDrag", "canMoveIn", "canMoveOut"].includes(key)) {
Expand Down

0 comments on commit 844c6bf

Please sign in to comment.