Skip to content

Commit

Permalink
Fix #3.
Browse files Browse the repository at this point in the history
  • Loading branch information
foxdonut committed Jan 13, 2017
1 parent c8c0a69 commit 2dc4609
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/library/src/client/root/receive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function receive(model: Model, proposal: Proposal): Model {
break;
case "Server.LoadedBookList":
model.inProgress = false;
model[proposal.section].bookIds = pluck("id", proposal.books);
model[proposal.section].bookIds = pluck("id")<string>(proposal.books);

model[proposal.section].booksById = reduce((booksById, book) => {
booksById[String(book.id)] = book;
Expand All @@ -17,4 +17,4 @@ export function receive(model: Model, proposal: Proposal): Model {
break;
}
return model;
}
}
2 changes: 1 addition & 1 deletion examples/library/src/client/sinonServer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function loadDatabase(): Promise<Database> {
xhr.responseType = "arraybuffer";

xhr.onload = function(evt: Event): void {
const uInt8Array: Uint8Array = new Uint8Array(this.response);
const uInt8Array: Uint8Array = new Uint8Array(xhr.response);
const db: Database = new Database(uInt8Array);

resolve(db);
Expand Down

0 comments on commit 2dc4609

Please sign in to comment.