Skip to content

Commit 49f2f3f

Browse files
committed
fix(book-static-service): add Array.push for the createBook method
1 parent 5202950 commit 49f2f3f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/app/book/shared/book-static-async-data.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class BookStaticAsyncDataService {
5959
}
6060

6161
createBook(book): Observable<Book> {
62+
this.staticBookData.push(book)
6263
return Observable.of(book);
6364
}
6465

src/app/book/shared/book-static-data.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export class BookStaticDataService {
5959
}
6060

6161
createBook(book): Book {
62+
this.staticBookData.push(book)
6263
return book;
6364
}
6465

0 commit comments

Comments
 (0)