Skip to content

Commit

Permalink
bugfix: delta.changed can be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
hans-crypto committed Feb 28, 2024
1 parent 223d771 commit 688eef5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/app/shared/common.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,11 @@ export function uncompressTx(tx: any): any {

export function uncompressDeltaChange(delta: any): any {

// another fix, delta can be undefined, but code in state.service is not checking this
if (!delta.changed) {
delta.changed = [];
}

// old backend - nothing to do
if (delta.added[0] && !Array.isArray(delta.added[0]) ||
delta.changed[0] && !Array.isArray(delta.changed[0])) {
Expand Down

0 comments on commit 688eef5

Please sign in to comment.