Skip to content

Commit 48c4b75

Browse files
committed
Refactor code
1 parent ace6bfa commit 48c4b75

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/serialization/form/src/formSerializationWriter.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,7 @@ export class FormSerializationWriter implements SerializationWriter {
136136
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
137137
const rawValues = values.filter((x) => x !== undefined).map((x) => `${x}`);
138138
if (rawValues.length > 0) {
139-
rawValues.forEach((val) => {
140-
this.writeStringValue(key, val);
141-
});
139+
this.writeCollectionOfPrimitiveValues<string>(key, rawValues);
142140
}
143141
}
144142
};

0 commit comments

Comments
 (0)