diff --git a/cateditor/src/components/CatalogContents.vue b/cateditor/src/components/CatalogContents.vue index 8818014..c0ed7dc 100644 --- a/cateditor/src/components/CatalogContents.vue +++ b/cateditor/src/components/CatalogContents.vue @@ -236,28 +236,7 @@ export default { arrayMove.mutate(mats, fromIndex, toIndex) this.setModelMaterials({ model: this.selectedModel, materials: mats }) }, - /* - groupByModel: function(materials) { - let models = [] - for (let mat of materials) { - let model = models.length > 0 ? models[models.length - 1] : null - - if (model === null || model.id !== mat.model) { - // new model - model = { id: mat.model, - name: mat.name, - materials: [mat.id] } - models.push(model) - } else { - // add to existing - model.materials.push(mat.id) - } - } - - return models - }, - */ ...mapActions([ 'reorderSection', 'setSectionPages',