diff options
Diffstat (limited to 'src/lib/ServiceItem.tsx')
-rw-r--r-- | src/lib/ServiceItem.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ServiceItem.tsx b/src/lib/ServiceItem.tsx index 6a0a99b..a639132 100644 --- a/src/lib/ServiceItem.tsx +++ b/src/lib/ServiceItem.tsx @@ -15,7 +15,7 @@ interface Params { const ServiceItem: React.FC = () => { const service = useContext(ServiceContext); const history = useHistory(); - const query = useQuery(); + const { query } = useQuery(); const { id } = useParams<Params>(); const { data: item, mutate } = hooks[service.route].useItem(id); |