Skip to content

Commit f43bbd1

Browse files
committed
refactor: remove unused useAdminQuery call in ManageLocationAddressesContent
Remove unnecessary useAdminQuery(LOCATION_ADDRESS_LIST) call from ExpandableLocationAddressRow component. The query is already handled by useTableGrid hook, and mutations trigger refetchQueries to keep data in sync.
1 parent b6dcdd9 commit f43bbd1

File tree

1 file changed

+0
-1
lines changed
  • frontend-nx/apps/edu-hub/components/pages/ManageLocationAddressesContent

1 file changed

+0
-1
lines changed

frontend-nx/apps/edu-hub/components/pages/ManageLocationAddressesContent/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ type ExpandableRowProps = {
4242

4343
const ExpandableLocationAddressRow: React.FC<ExpandableRowProps> = ({ row, onError }): React.ReactElement => {
4444
const { t } = useTranslation('manageLocationAddresses');
45-
useAdminQuery(LOCATION_ADDRESS_LIST);
4645

4746
// Handle location address alias errors specifically
4847
const handleAliasError = useCallback(

0 commit comments

Comments
 (0)