[ACS-5645]removed unwanted code

This commit is contained in:
Yasa-Nataliya
2023-10-13 16:19:57 +05:30
committed by Anukriti Singh
parent c005237498
commit bdb7b11ecd
2 changed files with 1 additions and 3 deletions
@@ -224,8 +224,6 @@ export class CategoriesManagementComponent implements OnInit, OnDestroy {
const newCat = new Category({ id: newCatName, name: newCatName });
this.categories.push(newCat);
this.clearCategoryNameInput();
this.categoryNameControl.setValue('');
this.categoryNameControl.markAsUntouched();
this._existingCategories = null;
this.categoriesChange.emit(this.categories);
}
@@ -742,7 +742,7 @@ describe('ContentMetadataComponent', () => {
it('should hide card views group when the grouped properties are empty', async () => {
spyOn(contentMetadataService, 'getGroupedProperties');
spyOn(contentMetadataService, 'getGroupedProperties').and.stub();
component.ngOnChanges({ node: new SimpleChange(node, expectedNode, false) });