mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 19:01:05 +08:00
Merge pull request #8006 from christophe-g/8005-liElement-array-property-breaks-storybook-knobs-when-when-value-is-undefined
Addon-knobs: Handle undefined array value
This commit is contained in:
commit
38e018d28b
@ -62,7 +62,7 @@ export default class ArrayType extends Component<ArrayTypeProps> {
|
||||
|
||||
render() {
|
||||
const { knob } = this.props;
|
||||
const value = knob.value.join(knob.separator);
|
||||
const value = knob.value && knob.value.join(knob.separator);
|
||||
|
||||
return (
|
||||
<Form.Textarea
|
||||
|
Loading…
x
Reference in New Issue
Block a user