Skip to content

Commit

Permalink
upd: allow to hide else socket of ifElse component
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX committed Nov 12, 2023
1 parent 6c1b042 commit 4bf3e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/block-data/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ export default {
),

ifElse: component(
"If else",
(props) => (props["[else]"] ? "If else" : "If"),
null,
[
content("then", "as-socket", Direction.RIGHT),
content("else", "as-socket", Direction.BOTTOM),
content("else", "as-hided-socket", Direction.BOTTOM),
],
input("condition", t.boolean),
),
Expand Down

0 comments on commit 4bf3e9d

Please sign in to comment.