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) => {
|
const FileOpen: React.FC<Props> = (props) => {
|
||||||
|
|
||||||
|
if (!props.id) {
|
||||||
|
return <></>
|
||||||
|
}
|
||||||
|
|
||||||
const { data } = useGetFileQuery({
|
const { data } = useGetFileQuery({
|
||||||
variables:{
|
variables:{
|
||||||
id: props.id
|
id: props.id
|
||||||
|
Loading…
Reference in New Issue
Block a user