quick remove constraining value fix (#82)

This commit is contained in:
Kurt Hutten
2023-03-23 20:39:55 +11:00
committed by GitHub
parent 6154f1bd98
commit 42eb3506bb

View File

@ -988,7 +988,7 @@ export function getRemoveConstraintsTransform(
const firstArg = getFirstArg(sketchFnExp)
if (Array.isArray(firstArg.val)) {
const [a, b] = firstArg.val
if (a?.type !== 'Literal' && b?.type !== 'Literal') {
if (a?.type !== 'Literal' || b?.type !== 'Literal') {
return transformInfo
}
} else {