Fix ExposeMixin "this.activeIndicator.removeClass is not a function"

If a file is allowed by MIME_REGEX, it needs to be included in list or counts will be off, causing error when closing
This commit is contained in:
nathan 2022-11-15 14:27:03 -07:00
parent c15440e905
commit 681d51cb14

View File

@ -570,7 +570,7 @@ export function ExposeMixin<B extends Constructor<LitElement>>(superclass : B)
continue; continue;
} }
let data = egw.dataGetUIDdata(uid); let data = egw.dataGetUIDdata(uid);
if(typeof data?.data?.mime === "string" && MIME_REGEX.test(data.data.mime) && !(MIME_AUDIO_REGEX.test(data.data.mime))) if(typeof data?.data?.mime === "string" && MIME_REGEX.test(data.data.mime))
{ {
let media = this.getMedia(data.data); let media = this.getMedia(data.data);
images[image_index++] = Object.assign({}, data.data, media[0]); images[image_index++] = Object.assign({}, data.data, media[0]);