2
0

🐛 (buttons) Fix dynamic buttons edge not showing

This commit is contained in:
Baptiste Arnaud
2023-02-23 19:22:32 +01:00
parent 0619c60970
commit e1b7320f6f
4 changed files with 13 additions and 16 deletions

View File

@ -56,6 +56,7 @@ import {
blockTypeHasItems,
isChoiceInput,
isConditionBlock,
isDefined,
} from 'utils'
const roundSize = 20
@ -456,4 +457,6 @@ const parseDefaultBlockOptions = (type: BlockWithOptionsType): BlockOptions => {
}
export const hasDefaultConnector = (block: Block) =>
!isChoiceInput(block) && !isConditionBlock(block)
(!isChoiceInput(block) && !isConditionBlock(block)) ||
(block.type === InputBlockType.CHOICE &&
isDefined(block.options.dynamicVariableId))