Skip to content

Commit bd68d30

Browse files
committed
fix: #255 clear data on new customer button is pressed
1 parent 9bb6362 commit bd68d30

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/app/modules/customer-management/components/customer-info/components/customer-list/customer-list.component.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ describe('CustomerTableListComponent', () => {
8181

8282
params.map((param) =>
8383
it(`on success ${param.actionName} customer, the load all customer action should be triggered`, () => {
84-
const actionSubject = TestBed.get(ActionsSubject) as ActionsSubject;
84+
const actionSubject = TestBed.inject(ActionsSubject) as ActionsSubject;
8585
const action = {
8686
type: param.actionType,
8787
};
@@ -95,7 +95,7 @@ describe('CustomerTableListComponent', () => {
9595

9696
params.map((param) =>
9797
it(`on success ${param.actionName} customer, the customer form should be disabled`, () => {
98-
const actionSubject = TestBed.get(ActionsSubject) as ActionsSubject;
98+
const actionSubject = TestBed.inject(ActionsSubject) as ActionsSubject;
9999
const action = {
100100
type: param.actionType,
101101
};
@@ -106,7 +106,7 @@ describe('CustomerTableListComponent', () => {
106106
);
107107

108108
it('on success load customers, the customer list should be populated', () => {
109-
const actionSubject = TestBed.get(ActionsSubject) as ActionsSubject;
109+
const actionSubject = TestBed.inject(ActionsSubject) as ActionsSubject;
110110
const action = {
111111
type: CustomerManagementActionTypes.LOAD_CUSTOMERS_SUCCESS,
112112
payload: state.data,

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
4343
showlist: boolean;
4444
errorDate: boolean;
4545

46-
constructor(private formBuilder: FormBuilder, private store: Store<Merged>, private renderer: Renderer2) {
46+
constructor(private formBuilder: FormBuilder, private store: Store<Merged>) {
4747
this.entryForm = this.formBuilder.group({
4848
project_id: '',
4949
activity_id: '',

0 commit comments

Comments
 (0)