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:
leekelleher
2024-05-21 10:33:05 +01:00
parent dd2f9941f6
commit d545303bfc

View File

@@ -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');