editor: case-insensitive section name search when adding mat
This commit is contained in:
@ -363,7 +363,7 @@ export const store = new Vuex.Store({
|
|||||||
// see if we match a section, add a new model at the end
|
// see if we match a section, add a new model at the end
|
||||||
let title = sectionTitle(material)
|
let title = sectionTitle(material)
|
||||||
for (let section of state.catalog.sections) {
|
for (let section of state.catalog.sections) {
|
||||||
if (title === section.name) {
|
if (title.toLowerCase() === section.name.toLowerCase()) {
|
||||||
let newModel = extendModelFromMaterial(material)
|
let newModel = extendModelFromMaterial(material)
|
||||||
let models = getters.sectionModels(section)
|
let models = getters.sectionModels(section)
|
||||||
models.push(newModel)
|
models.push(newModel)
|
||||||
|
|||||||
Reference in New Issue
Block a user