Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #16 from compumike08/master
Browse files Browse the repository at this point in the history
Fix issue #14
  • Loading branch information
coryhouse authored Jul 27, 2016
2 parents 4759fe7 + 0cdaa0f commit 8222631
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/mockAuthorApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class AuthorApi {
}

static saveAuthor(author) {
author = Object.assign({}, author); // to avoid manipulating object passed in.
return new Promise((resolve, reject) => {
setTimeout(() => {
// Simulate server-side validation
Expand All @@ -59,7 +60,7 @@ class AuthorApi {
authors.push(author);
}

resolve(Object.assign({}, author));
resolve(author);
}, delay);
});
}
Expand Down

0 comments on commit 8222631

Please sign in to comment.