FileOpener dont query if ID not set
This commit is contained in:
parent
79fe625ae7
commit
bed2e2f264
@ -14,6 +14,10 @@ interface Props {
|
||||
|
||||
const FileOpen: React.FC<Props> = (props) => {
|
||||
|
||||
if (!props.id) {
|
||||
return <></>
|
||||
}
|
||||
|
||||
const { data } = useGetFileQuery({
|
||||
variables:{
|
||||
id: props.id
|
||||
|
Loading…
Reference in New Issue
Block a user