Skip to content

Commit 8e80e56

Browse files
deleonioCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Martin <6279703+deleonio@users.noreply.github.com>
1 parent f5cb18a commit 8e80e56

File tree

1 file changed

+1
-1
lines changed
  • packages/components/src/schema/props

1 file changed

+1
-1
lines changed

packages/components/src/schema/props/level.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const validateLevel = (component: Generic.Element.Component, value?: Leve
1616
component,
1717
'_level',
1818
(value?: LevelPropType): boolean => typeof value === 'number' && headingLevelOptions.includes(value),
19-
new Set([`Number {${headingLevelOptions.join(', ')}`]),
19+
new Set(headingLevelOptions.map(String)),
2020
value,
2121
{
2222
defaultValue: 1,

0 commit comments

Comments
 (0)