Comparing version 5.0.1 to 5.0.2
# Changelog | ||
## `5.0.2` | ||
- Fixes edge case when a request fails and no collection was given | ||
## `5.0.1` | ||
@@ -4,0 +8,0 @@ |
@@ -465,3 +465,3 @@ 'use strict'; | ||
_this.set(currentAttributes); | ||
if (optimistic && _this.isNew) { | ||
if (optimistic && _this.isNew && collection) { | ||
collection.remove(_this); | ||
@@ -468,0 +468,0 @@ } |
{ | ||
"name": "mobx-rest", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"description": "REST conventions for mobx.", | ||
@@ -5,0 +5,0 @@ "jest": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70805