Skip to content

Commit

Permalink
fix: draft as base state
Browse files Browse the repository at this point in the history
Forgot to remove an early `isDraft` check. 馃槀
  • Loading branch information
aleclarson committed Jan 21, 2019
1 parent afaa737 commit 9a2e756
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/immer.js
Expand Up @@ -56,11 +56,6 @@ export class Immer {
result = recipe(base)
if (result === undefined) return base
}
// See #100, don't nest producers
else if (isDraft(base)) {
result = recipe.call(base, base)
if (result === undefined) return base
}
// The given value must be proxied.
else {
this.scopes.push([])
Expand Down

0 comments on commit 9a2e756

Please sign in to comment.