Skip to content

Commit

Permalink
Dashboard layout changes cannot be saved #171
Browse files Browse the repository at this point in the history
  • Loading branch information
aeberhart committed Jul 15, 2022
1 parent 7717741 commit 6955087
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions angular/src/app/instance/instance.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,14 @@ export class InstanceComponent implements OnInit {
static eq(i: object, item: object) {
for (const f of Object.keys(i)) {
if (f !== 'x' && f !== 'y' && f !== 'rows' && f !== 'cols') {
if (i[f] !== item[f]) {
return false;
if (typeof i[f] === 'object' && typeof item[f] === 'object') {
if (JSON.stringify(i[f]) !== JSON.stringify(item[f])) {
return false;
}
} else {
if (i[f] !== item[f]) {
return false;
}
}
}
}
Expand Down

0 comments on commit 6955087

Please sign in to comment.