Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jloleysens committed Aug 10, 2020
1 parent 9155d8e commit 09f42e9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ export const ProcessorTypeField: FunctionComponent<Props> = ({ initialType }) =>
const descriptor = getProcessorDescriptor(type);
selectedOptions = descriptor
? [{ label: descriptor.label, value: type }]
: [{ label: type, value: type }];
: // If there is no label for this processor type, just use the type as the label
[{ label: type, value: type }];
} else {
selectedOptions = [];
}
Expand Down

0 comments on commit 09f42e9

Please sign in to comment.