Skip to content

Commit

Permalink
Set counterUrl without lodash lib
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoJokhan committed Jan 16, 2023
1 parent a07d425 commit 8fc1639
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cms/lib/modules/idea-map-widgets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* Overview of idea resources on a map
*/
const openstadMap = require('../../../config/map').default;
const _ = require('lodash');

module.exports = {
extend: 'map-widgets',
Expand Down Expand Up @@ -177,7 +176,7 @@ module.exports = {


widgets.forEach((widget) => {
widget.counterUrl = _.get(widget, 'counterUrl', 'plannen');
widget.counterUrl = widget.counterUrl || 'plannen';
widget.ideas = req.data.ideas ? req.data.ideas.map((idea) => {
return {
location: idea.location,
Expand Down

1 comment on commit 8fc1639

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/frontend:feature-set-url-on-counter-widget-8fc1639

Please sign in to comment.