diff --git a/src/components/modals/AddModal.jsx b/src/components/modals/AddModal.jsx index a32eb6b..910b085 100644 --- a/src/components/modals/AddModal.jsx +++ b/src/components/modals/AddModal.jsx @@ -102,7 +102,7 @@ class AddModal extends React.Component { } for(let [key, val] of Object.entries(this.props.sources)) { - if(types[val.type].indexOf(type) > -1) { + if(types[val.type] && types[val.type].indexOf(type) > -1) { sources.push(key); } }