Skip to content

Commit a66ebe4

Browse files
remove unecessary validation
1 parent 01d7c6e commit a66ebe4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ui/src/views/setting/ConfigurationValue.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ export default {
278278
279279
// The updateConfiguration API expects a blank string to clean up the configuration value
280280
if (
281-
(['CSV', 'Order', 'WhitespaceSeparatedListWithOptions'].includes(configrecord.type) && Object.keys(newValue).length === 0) ||
282-
(configrecord.type === 'String' && newValue.length === 0)
281+
(['CSV', 'Order', 'WhitespaceSeparatedListWithOptions', 'String'].includes(configrecord.type) && newValue.length === 0)
283282
) {
284283
newValue = ' '
285284
}

0 commit comments

Comments
 (0)