Fix removal of deleted jorunals from the journal list.

Fixes #36.
master
Tom Hacohen 6 years ago
parent ae3f32cc01
commit 8cc20ec3ed

@ -173,9 +173,9 @@ const deleteMapModelReducer = <T extends Record<any>>(state: T, action: any) =>
return state;
}
const id = payload as number;
const uid = payload.uid;
let value = state.get('value', null)!;
value = value.delete(id);
value = value.delete(uid);
return state.set('value', value);
}
};

Loading…
Cancel
Save