Make sure file mode works
This commit is contained in:
parent
ce6398685f
commit
06ad4ca644
5 changed files with 14 additions and 14 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue