Skip to content

Commit

Permalink
Merge pull request #94 from xiangxn/fix-asset-feeds-list
Browse files Browse the repository at this point in the history
fix object merge issue
  • Loading branch information
sschiessl-bcp authored May 6, 2022
2 parents e262273 + 4911131 commit 168bec8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/chain/src/ChainStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -1346,11 +1346,16 @@ class ChainStore {
* so we need to use mergeDeep to keep that data
*/
case "account":
this.objects_by_id.set(
object.id,
(current = current.mergeDeep(Immutable.fromJS(object)))
);
break;
case "asset":
case "asset_bitasset_data":
this.objects_by_id.set(
object.id,
(current = current.mergeDeep(Immutable.fromJS(object)))
(current = current.merge(Immutable.fromJS(object)))
);
break;

Expand Down

0 comments on commit 168bec8

Please sign in to comment.