diff --git a/src/components/modals/AddModal.jsx b/src/components/modals/AddModal.jsx index eb2dd7b..d08a539 100644 --- a/src/components/modals/AddModal.jsx +++ b/src/components/modals/AddModal.jsx @@ -31,7 +31,7 @@ class AddModal extends React.Component { if(this.state.type !== 'background') { layer.source = this.state.source - if(this.state.type !== 'raster') { + if(this.state.type !== 'raster' && this.state['source-layer']) { layer['source-layer'] = this.state['source-layer'] } }