Skip to content

Commit 79f6316

Browse files
authored
fix(storybook): fix the argTypes.weekStart.mapping on Datepicker.stories.tsx (#1254)
fix #1167
1 parent 4fd01e5 commit 79f6316

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Datepicker/Datepicker.stories.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ export default {
1515
},
1616
weekStart: {
1717
options: Object.values(WeekStart).filter((x) => typeof x === 'string'),
18-
mapping: WeekStart,
18+
mapping: Object.entries(WeekStart)
19+
.filter(([, value]) => typeof value !== 'string')
20+
.reduce((acc, [key, value]) => ({ ...acc, [key]: value }), {}),
1921
control: {
2022
type: 'select',
2123
labels: Object.entries(WeekStart)

0 commit comments

Comments
 (0)