Skip to content

Commit

Permalink
detailed search view should not render when the service unit filter i…
Browse files Browse the repository at this point in the history
…s being modified
  • Loading branch information
robertrytovuori committed May 15, 2024
1 parent 2eb25dc commit 8bc1fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leases/components/search/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ class Search extends PureComponent<Props, State> {
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) {
Expand Down Expand Up @@ -156,6 +155,7 @@ class Search extends PureComponent<Props, State> {
delete searchQuery.in_bbox;
delete searchQuery.visualization;
delete searchQuery.zoom;
delete searchQuery.service_unit;

const keys = Object.keys(searchQuery);

Expand Down

0 comments on commit 8bc1fdb

Please sign in to comment.