From 8bc1fdbf1df60603d4c6aa9235bf3fe31dd1bf94 Mon Sep 17 00:00:00 2001 From: Robert Rytovuori Date: Wed, 15 May 2024 14:28:14 +0300 Subject: [PATCH] detailed search view should not render when the service unit filter is being modified --- src/leases/components/search/Search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leases/components/search/Search.js b/src/leases/components/search/Search.js index 7b8dce9d0..a0b5e9855 100644 --- a/src/leases/components/search/Search.js +++ b/src/leases/components/search/Search.js @@ -105,7 +105,6 @@ class Search extends PureComponent { newState.municipalityOptions = getFieldOptions(props.leaseAttributes, LeaseFieldPaths.MUNICIPALITY); newState.tenantTypeOptions = getFieldOptions(props.leaseAttributes, LeaseTenantContactSetFieldPaths.TYPE, false); newState.typeOptions = getFieldOptions(props.leaseAttributes, LeaseFieldPaths.TYPE); - //newState.serviceUnitOptions = getFieldOptions(props.leaseAttributes, 'service_unit', true); } if(props.lessors !== state.lessors) { @@ -156,6 +155,7 @@ class Search extends PureComponent { delete searchQuery.in_bbox; delete searchQuery.visualization; delete searchQuery.zoom; + delete searchQuery.service_unit; const keys = Object.keys(searchQuery);