quick remove constraining value fix (#82)
This commit is contained in:
@ -988,7 +988,7 @@ export function getRemoveConstraintsTransform(
|
|||||||
const firstArg = getFirstArg(sketchFnExp)
|
const firstArg = getFirstArg(sketchFnExp)
|
||||||
if (Array.isArray(firstArg.val)) {
|
if (Array.isArray(firstArg.val)) {
|
||||||
const [a, b] = firstArg.val
|
const [a, b] = firstArg.val
|
||||||
if (a?.type !== 'Literal' && b?.type !== 'Literal') {
|
if (a?.type !== 'Literal' || b?.type !== 'Literal') {
|
||||||
return transformInfo
|
return transformInfo
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user