From 4a64684621e80998e2c155220397ed9629582b9c Mon Sep 17 00:00:00 2001 From: Lisi Linhart Date: Wed, 25 Oct 2023 17:04:04 +0200 Subject: [PATCH] fix: select stories --- src/components/Select/Select.stories.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/Select/Select.stories.js b/src/components/Select/Select.stories.js index 5daccfadf..7de4f230e 100644 --- a/src/components/Select/Select.stories.js +++ b/src/components/Select/Select.stories.js @@ -401,7 +401,7 @@ export const WithMinibrowser = (args) => ({ methods: { onSelectItem(item) { - if (!item.items.length) { + if (!item?.items?.length) { this.internalValue = item.label this.$refs.select.hideList() @@ -653,7 +653,7 @@ WithOptionDisabled.parameters = { export const WithInlineLabel = SelectTemplate.bind({}) WithInlineLabel.args = { - inlineLabel: 'Item:' + inlineLabel: 'Item:', } WithInlineLabel.parameters = { @@ -674,7 +674,8 @@ MultipleWithCountLabels.args = { MultipleWithCountLabels.parameters = { docs: { description: { - story: 'Use the `show-count` property to group the selected items in a counter.', + story: + 'Use the `show-count` property to group the selected items in a counter.', }, }, -} \ No newline at end of file +}