fix(n8n Form Trigger Node): When clicking on a multiple choice label, the wrong one is selected (#11059)

This commit is contained in:
Michael Kret
2024-10-02 17:58:47 +03:00
committed by GitHub
parent 3c7556542c
commit 948edd1a04
2 changed files with 46 additions and 4 deletions

View File

@@ -83,7 +83,7 @@ export function prepareFormData({
input.isMultiSelect = true;
input.multiSelectOptions =
field.fieldOptions?.values.map((e, i) => ({
id: `option${i}`,
id: `option${i}_${input.id}`,
label: e.option,
})) ?? [];
} else if (fieldType === 'file') {