Skip to content

Commit

Permalink
fix(engine-formula): ensure super is called at the beginning of the c…
Browse files Browse the repository at this point in the history
…onstructor (#1452)
  • Loading branch information
jikkai committed Mar 1, 2024
1 parent 4d49dad commit a9cb84d
Showing 1 changed file with 1 addition and 6 deletions.
Expand Up @@ -125,12 +125,7 @@ export class ArrayValueObject extends BaseValueObject {
}>;

constructor(rawValue: string | IArrayValueObject) {
if (typeof rawValue === 'string') {
super(rawValue as string);
} else {
const rawString = fromObjectToString(rawValue as IArrayValueObject);
super(rawString);
}
super(typeof rawValue === 'string' ? rawValue as string : fromObjectToString(rawValue as IArrayValueObject));

this._values = this._formatValue(rawValue);
}
Expand Down

0 comments on commit a9cb84d

Please sign in to comment.