Skip to content

Commit 90dc4b9

Browse files
committed
fix field names
1 parent 5ebbfe2 commit 90dc4b9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/javascript/components/service-dialog-form/edit-field-modal/edit-field-modal.schema.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import {
77
} from './fields.schema';
88

99
const fields = (tab) => tab.fields.map((item) => {
10-
console.log(item);
1110
switch (item.field) {
1211
case componentTypes.TEXT_FIELD:
1312
return textFieldComponent(item);

app/javascript/components/service-dialog-form/edit-field-modal/fields.schema.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ export const textFieldComponent = (field) => ({
44
component: componentTypes.TEXT_FIELD,
55
label: field.label,
66
maxLength: 128,
7-
id: 'options.name',
7+
id: field.label,
88
name: field.label,
99
});
1010

1111
export const textAreaComponent = (field) => ({
1212
component: componentTypes.TEXTAREA,
13-
id: 'public_key',
13+
id: field.label,
1414
name: field.label,
1515
label: field.label,
1616
rows: 10,
1717
});
1818

1919
export const switchComponent = (field) => ({
2020
component: componentTypes.SWITCH,
21-
id: 'incremental',
21+
id: field.label,
2222
name: field.label,
2323
label: field.label,
2424
maxLength: 50,
@@ -34,7 +34,7 @@ const assignProfiles = [
3434

3535
export const selectComponent = (field) => ({
3636
component: componentTypes.SELECT,
37-
id: 'options.scan_item_set_name',
37+
id: field.label,
3838
name: field.label,
3939
label: field.label,
4040
placeholder: __('<Choose>'),

0 commit comments

Comments
 (0)