Skip to content
This repository was archived by the owner on Sep 26, 2022. It is now read-only.

Commit 94f925f

Browse files
docs: update Chip and Icon playgrounds
Signed-off-by: Florian-Schoenherr <[email protected]>
1 parent 63a9ba2 commit 94f925f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/docs/src/playground/Chip.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
icon: {
2020
type: 'select',
2121
items,
22-
format: (val) => items.find((i) => i.value == val).name, // eslint-disable-line eqeqeq
22+
format: (val) => items.find((i) => i.value == val) ? items.find((i) => i.value == val).name : '', // eslint-disable-line eqeqeq
2323
},
2424
size: {
2525
type: 'select',
2626
items: ['x-small', 'small', 'default', 'large', 'x-large'],
27+
mandatory: true,
2728
},
2829
};
2930

packages/docs/src/playground/Icon.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
icon: {
1616
type: 'select',
1717
items,
18-
format: (val) => items.find((i) => i.value == val).name, // eslint-disable-line eqeqeq
18+
format: (val) => items.find((i) => i.value == val) ? items.find((i) => i.value == val).name : '', // eslint-disable-line eqeqeq
1919
},
2020
color: { type: 'select', items: ['red', 'green', 'blue', 'indigo', 'purple'] },
2121
};

0 commit comments

Comments
 (0)