fix: implementing a safer dereference method until we update createLiteraly()

This commit is contained in:
Kevin Nadro
2025-01-30 19:41:13 -06:00
parent d04ac2bbb4
commit f48c8fefd6

View File

@ -148,7 +148,7 @@ export function updateCenterRectangleSketch(
if (isLiteral(literal)) {
if (isLiteralValueNotStringAndBoolean(literal.value)) {
callExpression.arguments[0] = createArrayExpression([
createLiteral(literal.value.value),
JSON.parse(JSON.stringify(literal)),
createLiteral(Math.abs(twoX)),
])
}