redux-json-api-handlers
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -51,2 +51,3 @@ 'use strict'; | ||
var createRelationAddHandler = exports.createRelationAddHandler = function createRelationAddHandler(type, relationName) { | ||
var externalRelationId = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null; | ||
return function (state, _ref) { | ||
@@ -68,3 +69,3 @@ var payload = _ref.payload; | ||
createdRelations.forEach(function (current) { | ||
var currentRelationId = getRelationId(relationName, current); | ||
var currentRelationId = externalRelationId || getRelationId(relationName, current); | ||
if (!currentRelationId) return; | ||
@@ -71,0 +72,0 @@ var relative = updatedRelativesMap.get(currentRelationId); |
{ | ||
"name": "redux-json-api-handlers", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"description": "JSON-API entities and relationships handlers", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
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
50477
208