mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-02 11:15:35 +03:00
removed votes cache transformation
This commit is contained in:
parent
6a7d8452f5
commit
c1624a658f
@ -11,13 +11,11 @@ import MigrationHelpers from '../../utils/migrationHelpers';
|
||||
const transformCacheVoteMap = createTransform(
|
||||
(inboundState: any) => ({
|
||||
...inboundState,
|
||||
votes: Array.from(inboundState.votes),
|
||||
subscribedCommunities: Array.from(inboundState.subscribedCommunities),
|
||||
pointActivities: Array.from(inboundState.pointActivities),
|
||||
}),
|
||||
(outboundState) => ({
|
||||
...outboundState,
|
||||
votes: new Map(outboundState.votes),
|
||||
subscribedCommunities: new Map(outboundState.subscribedCommunities),
|
||||
pointActivities: new Map(outboundState.pointActivities),
|
||||
}),
|
||||
|
Loading…
Reference in New Issue
Block a user