From a3dc4504973cef2ef552f16e26fd5345572c88fb Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Fri, 16 May 2025 08:13:11 +0100 Subject: [PATCH] fix: customer route --- packages/admin-ui/src/pages/Customers/CustomerProfile.jsx | 2 +- packages/admin-ui/src/routing/routes.jsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/admin-ui/src/pages/Customers/CustomerProfile.jsx b/packages/admin-ui/src/pages/Customers/CustomerProfile.jsx index e98ca5f6..5a102a3b 100644 --- a/packages/admin-ui/src/pages/Customers/CustomerProfile.jsx +++ b/packages/admin-ui/src/pages/Customers/CustomerProfile.jsx @@ -285,7 +285,6 @@ const CHECK_AGAINST_SANCTIONS = gql` const CustomerProfile = memo(() => { const [, navigate] = useLocation() - const [showCompliance, setShowCompliance] = useState(false) const [wizard, setWizard] = useState(false) const [error, setError] = useState(null) @@ -298,6 +297,7 @@ const CustomerProfile = memo(() => { loading: customerLoading, } = useQuery(GET_CUSTOMER, { variables: { customerId }, + skip: !customerId, }) const { data: configResponse, loading: configLoading } = useQuery(GET_DATA) diff --git a/packages/admin-ui/src/routing/routes.jsx b/packages/admin-ui/src/routing/routes.jsx index 6448b03d..78395005 100644 --- a/packages/admin-ui/src/routing/routes.jsx +++ b/packages/admin-ui/src/routing/routes.jsx @@ -105,7 +105,10 @@ const Routes = () => {