FileOpener dont query if ID not set

This commit is contained in:
Djeeberjr 2021-07-31 20:52:26 +02:00
parent 79fe625ae7
commit bed2e2f264

View File

@ -14,6 +14,10 @@ interface Props {
const FileOpen: React.FC<Props> = (props) => { const FileOpen: React.FC<Props> = (props) => {
if (!props.id) {
return <></>
}
const { data } = useGetFileQuery({ const { data } = useGetFileQuery({
variables:{ variables:{
id: props.id id: props.id