Skip to content

Commit 29b37e9

Browse files
committed
1 file modified
1 parent 5fce3bc commit 29b37e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/app/app.component.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class AppComponent {
7070
take(1)
7171
)
7272
.subscribe(currentData => {
73-
const upatedElement = currentData.find(input => input.getFormId === updatedApplication.getFormId);
73+
const upatedElement = currentData.find(input => input.getFormId() === updatedApplication.getFormId());
7474
let newData = [...currentData.splice(currentData.indexOf(upatedElement, 0), 1), updatedApplication];
7575
this.appSubject.next(newData);
7676
});
@@ -82,7 +82,7 @@ export class AppComponent {
8282
take(1)
8383
)
8484
.subscribe(currentData => {
85-
const upatedElement = currentData.find(input => input.getFormId === formId);
85+
const upatedElement = currentData.find(input => input.getFormId() === formId);
8686
this.appSubject.next(currentData.splice(currentData.indexOf(upatedElement, 0), 1));
8787
});
8888
}

0 commit comments

Comments
 (0)