Skip to content

Commit 816749e

Browse files
author
Murat
committed
fix(jsparser): fix force assign
1 parent 04f7566 commit 816749e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/jsObjectParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ export class JsObjectParser {
507507
}) as VariableExpression | PropertyExpression | undefined;
508508

509509
if (!existingExpr) this._merge(value, exprObject.tree, opts);
510-
} else if (opts.strategy === 'assign') {
510+
} else if (forceAssign || opts.strategy === 'assign') {
511511
const newExpr = this._objectToExpr(value);
512512
exprObject.valueType = newExpr.valueType;
513513
exprObject.tree = newExpr.tree;

0 commit comments

Comments
 (0)