Skip to content

Commit bc50087

Browse files
committed
Quickfix serializer
1 parent 9f01382 commit bc50087

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/serializer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const rules: Rule[] = [
5252
const dataFromHtml = el.getAttributeNames().reduce(
5353
(data: Record<string, any>, attrName: string) => ({
5454
...data,
55-
attrName: el.getAttribute(attrName)
55+
[attrName]: el.getAttribute(attrName)
5656
}),
5757
{}
5858
);

0 commit comments

Comments
 (0)