Bug: Fillet Button - selecting edge without tag caused an Error rev2 (#3690)

* typos

* typos2

* trigger ci
This commit is contained in:
max
2024-08-28 01:53:33 +02:00
committed by GitHub
parent 1d19fc6b7e
commit ed339a6b9a

View File

@ -469,6 +469,9 @@ export const hasValidFilletSelection = ({
if (segmentNode.node.type === 'CallExpression') {
const segmentName = segmentNode.node.callee.name
if (segmentName in sketchLineHelperMap) {
// Add check whether the tag exists at all:
if (!(segmentNode.node.arguments.length === 3)) return true
// If the tag exists, check if it is already filleted
const edges = isTagUsedInFillet({
ast,
callExp: segmentNode.node,