editor: case-insensitive section name search when adding mat

This commit is contained in:
Seth Ladygo
2019-05-21 17:29:15 -07:00
parent dbd2566028
commit 8d9aac45cc

View File

@ -363,7 +363,7 @@ export const store = new Vuex.Store({
// see if we match a section, add a new model at the end
let title = sectionTitle(material)
for (let section of state.catalog.sections) {
if (title === section.name) {
if (title.toLowerCase() === section.name.toLowerCase()) {
let newModel = extendModelFromMaterial(material)
let models = getters.sectionModels(section)
models.push(newModel)