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

@ -15,7 +15,7 @@ export const useThumbnail = (source: KeanuEvent | File | undefined) => {
const fileSize = ref("");
function isEvent(source: KeanuEvent | File | undefined): source is KeanuEvent {
return (source as KeanuEvent).getId !== undefined;
return (source as KeanuEvent)?.getId !== undefined;
}
if (isEvent(source)) {