Media Picker filter
Removed the empty string fallback, as this split the value as `['']` caused a bug with the allowed media-types filtering.
This commit is contained in:
@@ -46,7 +46,7 @@ export class UmbPropertyEditorUIMediaPickerElement extends UmbLitElement impleme
|
||||
this._focalPointEnabled = Boolean(config.getValueByAlias('enableFocalPoint'));
|
||||
this._crops = config?.getValueByAlias<Array<UmbCropModel>>('crops') ?? [];
|
||||
|
||||
const filter = config.getValueByAlias<string>('filter') ?? '';
|
||||
const filter = config.getValueByAlias<string>('filter');
|
||||
this._allowedMediaTypes = filter?.split(',') ?? [];
|
||||
|
||||
const minMax = config.getValueByAlias<NumberRangeValueType>('validationLimit');
|
||||
|
||||
Reference in New Issue
Block a user