material and activeModelIndex fix
This commit is contained in:
@ -4,6 +4,7 @@ import {ModelItemModel} from '../models/model-item.model';
|
||||
import {ApiService} from '../services/api.service';
|
||||
import {AutocompleteService} from '../services/autocomplete.service';
|
||||
import {ModalService} from '@inst-iot/bosch-angular-ui-components';
|
||||
import omit from 'lodash/omit';
|
||||
|
||||
@Component({
|
||||
selector: 'app-model-templates',
|
||||
@ -44,7 +45,7 @@ export class ModelTemplatesComponent implements OnInit {
|
||||
if (this.oldModelGroup !== '' && this.modelGroup !== this.oldModelGroup) { // group was changed, delete model in old group
|
||||
this.delete(null, this.oldModelGroup, this.oldModelName);
|
||||
}
|
||||
this.api.post('/model/' + this.modelGroup, this.model, () => {
|
||||
this.api.post('/model/' + this.modelGroup, omit(this.model, '_id'), () => {
|
||||
this.newModel = false;
|
||||
this.loadGroups();
|
||||
this.modelGroup = '';
|
||||
|
Reference in New Issue
Block a user