From 8d9aac45cc99f1a3d232a5f00881488edc8c158d Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Tue, 21 May 2019 17:29:15 -0700 Subject: [PATCH] editor: case-insensitive section name search when adding mat --- cateditor/src/pages/editor/store/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cateditor/src/pages/editor/store/index.js b/cateditor/src/pages/editor/store/index.js index dcc046e..fbb82dd 100644 --- a/cateditor/src/pages/editor/store/index.js +++ b/cateditor/src/pages/editor/store/index.js @@ -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)