Make sure file mode works

This commit is contained in:
N-Pex 2025-08-25 11:38:41 +02:00
parent ce6398685f
commit 06ad4ca644
5 changed files with 14 additions and 14 deletions

View file

@ -31,11 +31,11 @@ import { Attachment } from "../../models/attachment";
import ImageWithProgress from "../ImageWithProgress.vue";
function isEventAttachment(source: EventAttachment | Attachment | undefined): source is EventAttachment {
return (source as EventAttachment).event !== undefined;
return (source as EventAttachment)?.event !== undefined;
}
function isAttachment(source: EventAttachment | Attachment | undefined): source is Attachment {
return (source as Attachment).file !== undefined;
return (source as Attachment)?.file !== undefined;
}
const $$sanitize: any = inject("globalSanitize");