digirati-annotation-redux
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -13,6 +13,6 @@ import { ANNOTATIONS_ADD } from '../actions/annotations'; | ||
if (action.type === ANNOTATIONS_ADD) { | ||
var _list; | ||
var _Object$assign; | ||
return update(state, { | ||
list: (_list = {}, _list[action.payload.id] = { $set: action.payload.annotation }, _list) | ||
return Object.assign(state, { | ||
list: Object.assign(state.list, (_Object$assign = {}, _Object$assign[action.payload.id] = action.payload.annotation, _Object$assign)) | ||
}); | ||
@@ -19,0 +19,0 @@ } |
@@ -23,6 +23,6 @@ 'use strict'; | ||
if (action.type === _annotations.ANNOTATIONS_ADD) { | ||
var _list; | ||
var _Object$assign; | ||
return (0, _immutabilityHelper2.default)(state, { | ||
list: (_list = {}, _list[action.payload.id] = { $set: action.payload.annotation }, _list) | ||
return Object.assign(state, { | ||
list: Object.assign(state.list, (_Object$assign = {}, _Object$assign[action.payload.id] = action.payload.annotation, _Object$assign)) | ||
}); | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "digirati-annotation-redux", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"description": "Describe annotation-redux here", | ||
@@ -5,0 +5,0 @@ "main": "es/index.js", |
52174