chore: drop unused reload()
This commit is contained in:
parent
cd7500181e
commit
8b7d3e10e5
1 changed files with 2 additions and 10 deletions
|
|
@ -59,7 +59,7 @@ const GET_INFO = gql`
|
|||
`
|
||||
|
||||
const MachineRoute = () => {
|
||||
const [location, navigate] = useLocation()
|
||||
const [, navigate] = useLocation()
|
||||
const [loading, setLoading] = useState(true)
|
||||
const { id: deviceId } = useParams()
|
||||
|
||||
|
|
@ -78,15 +78,7 @@ const MachineRoute = () => {
|
|||
},
|
||||
})
|
||||
|
||||
const reload = () => {
|
||||
return navigate(location)
|
||||
}
|
||||
|
||||
return (
|
||||
!loading && (
|
||||
<Machines data={data} refetch={refetch} reload={reload}></Machines>
|
||||
)
|
||||
)
|
||||
return !loading && <Machines data={data} refetch={refetch}></Machines>
|
||||
}
|
||||
|
||||
const Machines = ({ data, refetch }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue