Skip to content

Commit

Permalink
fix: syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rowheat02 committed Nov 21, 2024
1 parent 7581bec commit 9856394
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/client/components/widgets/enhancers/wpsCounter.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ import { getWpsUrl } from '../../../utils/LayersUtils';
*/
const dataStreamFactory = ($props) =>
$props
.filter(({layer = {}, options, dependencies}) => {
return layer.name && getWpsUrl(layer) && options && options.aggregateFunction && options.aggregationAttribute && dependencies.viewport;
})
.filter(({layer = {}, options, dependencies}) => layer.name && getWpsUrl(layer) && options && options.aggregateFunction && options.aggregationAttribute && dependencies.viewport)
.distinctUntilChanged(
({layer = {}, options = {}, filter}, newProps) =>
(newProps.layer && layer.name === newProps.layer.name && layer.loadingError === newProps.layer.loadingError)
Expand Down

0 comments on commit 9856394

Please sign in to comment.