Skip to content

Commit

Permalink
fix: onLayerAdded wasnt defined for SplitViews
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Mar 18, 2024
1 parent 9396b8e commit deeb327
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/map/layers/Layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class Layer extends PureComponent {

static propTypes = {
id: PropTypes.string.isRequired,
onLayerAdded: PropTypes.func.isRequired,
config: PropTypes.object,
data: PropTypes.array,
dataFilters: PropTypes.object,
Expand All @@ -21,11 +20,13 @@ class Layer extends PureComponent {
isVisible: PropTypes.bool,
opacity: PropTypes.number,
openContextMenu: PropTypes.func,
onLayerAdded: PropTypes.func,
}

static defaultProps = {
opacity: 1,
isVisible: true,
onLayerAdded: Function.prototype,
}

state = {}
Expand Down

0 comments on commit deeb327

Please sign in to comment.