diff --git a/src/components/FileOpen.tsx b/src/components/FileOpen.tsx index 80a18c4..dca8ded 100644 --- a/src/components/FileOpen.tsx +++ b/src/components/FileOpen.tsx @@ -14,6 +14,10 @@ interface Props { const FileOpen: React.FC = (props) => { + if (!props.id) { + return <> + } + const { data } = useGetFileQuery({ variables:{ id: props.id