fix: map error

This commit is contained in:
Eric Maciel 2020-10-30 18:06:05 -04:00
parent c59e5239e4
commit 7f2bd39402

View File

@ -57,6 +57,11 @@ const opRemove = (op: Automerge.Diff, [map, ops]: any) => {
try {
const { index, path, obj, type } = op
// early return if no map obj available
if (!map) {
return [map, ops]
}
if (
map.hasOwnProperty(obj) &&
typeof map[obj] !== 'string' &&