Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 2915b8d

Browse files
committed
Fix array expression
1 parent 3007fcd commit 2915b8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/visitors/displayNameIdAndNamespace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const addConfig = (path, displayName, componentId, namespaceClasses) => {
2020
}
2121
if (namespaceClasses) {
2222
const namespaceClassOption = Array.isArray(namespaceClasses) ?
23-
t.arrayExpression(namespaceClasses)
23+
t.arrayExpression(namespaceClasses.map(value => t.stringLiteral(value)))
2424
: t.stringLiteral(namespaceClasses);
2525
withConfigProps.push(t.objectProperty(t.identifier('namespaceClasses'), namespaceClassOption))
2626
}

0 commit comments

Comments
 (0)