Fix multi-text editor
This commit is contained in:
parent
fb767c13f0
commit
ab8c092887
|
|
@ -62,8 +62,8 @@ export class ElsaMultiTextProperty {
|
|||
const propertyOptions = this.createKeyValueOptions(items);
|
||||
|
||||
const elsaInputTags = valueType === 'multi-text' ?
|
||||
<elsa-input-tags values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} /> :
|
||||
<elsa-input-tags-dropdown dropdownValues={propertyOptions} values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} />;
|
||||
<elsa-input-tags-dropdown dropdownValues={propertyOptions} values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} /> :
|
||||
<elsa-input-tags values={values} fieldId={fieldId} fieldName={fieldName} onValueChanged={e => this.onValueChanged(e.detail)} />;
|
||||
|
||||
return (
|
||||
<elsa-property-editor propertyDescriptor={propertyDescriptor}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ export async function getSelectListItems(serverUrl: string, propertyDescriptor:
|
|||
const options = propertyDescriptor.options;
|
||||
let items = [];
|
||||
|
||||
if (!!options.runtimeSelectListItemsProviderType) {
|
||||
if (!!options && options.runtimeSelectListItemsProviderType) {
|
||||
items = await fetchRuntimeItems(serverUrl, options);
|
||||
} else {
|
||||
items = options as Array<any> || [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue