Skip to content

Commit c2f5d79

Browse files
authored
Update web/client/components/widgets/enhancers/legendWidget.js
1 parent 6ad06e4 commit c2f5d79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/client/components/widgets/enhancers/legendWidget.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const {getScales} = require('../../../utils/MapUtils');
1818
* Add also base tools and menu to the widget
1919
*/
2020
module.exports = compose(
21-
withProps(({ dependencies = {}, dependenciesMap = [] }) => ({
21+
withProps(({ dependencies = {}, dependenciesMap = {} }) => ({
2222
layers: dependencies[dependenciesMap.layers] || dependencies.layers || [],
2323
scales: getScales(
2424
// TODO: this is a fallback that checks the viewport if projection is not defined. We should use only projection

0 commit comments

Comments
 (0)