Skip to content

Commit 4df6827

Browse files
committed
adjust indentation in utils/api/configurations.js
the eslint job failed due to "incorrect" indentation in the above file. it wants the switch statement in `#configureDynamicFormUiSchema` to not have indentation for the `case` statements. although documentation (e.g. [mdn docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch)) show the case statements indented. the change doesn't interfere with the functionality though, so I'm changing it so the pipeline passes.
1 parent 57b7e12 commit 4df6827

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

utils/api/configurations.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,14 @@ export const configureDynamicFormUiSchema = (schema, defaultOptions) => {
321321
}
322322
}
323323
switch(fields[key].type) {
324-
case 'checkbox':
325-
fieldOptions['ui:widget'] = 'checkboxes'
326-
break
327-
case 'radio':
328-
fieldOptions['ui:widget'] = 'radio'
329-
break
330-
default:
331-
fieldOptions['ui:inputType'] = fields[key].type
324+
case 'checkbox':
325+
fieldOptions['ui:widget'] = 'checkboxes'
326+
break
327+
case 'radio':
328+
fieldOptions['ui:widget'] = 'radio'
329+
break
330+
default:
331+
fieldOptions['ui:inputType'] = fields[key].type
332332
}
333333

334334
UiSchema[key] = fieldOptions

0 commit comments

Comments
 (0)