Skip to content

Commit 3b0bcf4

Browse files
committed
Added ability to completely remove string array encoding
1 parent 353ef5f commit 3b0bcf4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

App/containers/OptionsContainer.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,6 @@ const Options = ({dispatch, options}) =>
198198
placeholder={STRING_ARRAY_ENCODING_NONE}
199199
value={options.stringArrayEncoding}
200200
onChange={(event, {value}) => dispatch(actions.setStringArrayEncoding(value))}
201-
renderLabel={(item) => {
202-
return ({
203-
content: `${item.value}`,
204-
...item.value === STRING_ARRAY_ENCODING_NONE && {onRemove: undefined}
205-
});
206-
}}
207201
options={STRING_ARRAY_ENCODING_OPTIONS}/>
208202

209203
<Form.Input

App/reducers/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const initialState = {
3535
stringArrayThreshold: 0.8,
3636
stringArrayThresholdEnabled: true,
3737

38-
stringArrayEncoding: [STRING_ARRAY_ENCODING_NONE],
38+
stringArrayEncoding: [],
3939
stringArrayEncodingEnabled: true,
4040

4141
numbersToExpressions: false,
@@ -187,7 +187,7 @@ export const options = (state = initialState, action) => {
187187
case types.SET_STRING_ARRAY_ENCODING:
188188
return {
189189
...state,
190-
stringArrayEncoding: action.encoding.length ? action.encoding : initialState.stringArrayEncoding
190+
stringArrayEncoding: action.encoding
191191
};
192192

193193
case types.SET_STRING_ARRAY_THRESHOLD:

0 commit comments

Comments
 (0)