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