From 60504f8f8cc0f94ef23cbfab9630e82a63853f0b Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Tue, 7 Nov 2017 22:13:27 +0900 Subject: [PATCH 1/2] Fix broken CI build - restore code from https://github.com/storybooks/storybook/commit/cba07adda085fb3a8d7850f2b 53673be95196c3e - update test fixture for codemod --- addons/knobs/src/components/types/Array.js | 9 ++++++++- .../update-organisation-name.input.js | 1 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/addons/knobs/src/components/types/Array.js b/addons/knobs/src/components/types/Array.js index 83e576a353c0..7fcc62b46022 100644 --- a/addons/knobs/src/components/types/Array.js +++ b/addons/knobs/src/components/types/Array.js @@ -16,12 +16,19 @@ const styles = { color: '#555', }; +function formatArray(value, separator) { + if (value === '') { + return []; + } + return value.split(separator); +} + const ArrayType = ({ knob, onChange }) => (