[ACS-5645]removed unwanted code

This commit is contained in:
Yasa-Nataliya
2023-09-05 17:52:39 +05:30
committed by Anukriti Singh
parent 5c7d2e5222
commit ec005f5959
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);
}
@@ -722,7 +722,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) });