Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleisa committed Jun 24, 2024
1 parent d4cba31 commit 3de5fda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/diagram/diagram.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ export class DiagramComponent implements AfterViewInit, OnDestroy {
let lastAlignmentItem: AlignmentObject =
alignmentData.alignmentObjectDtoList[alignmentData.alignmentObjectDtoList.length - 1];

let needsUpdate: boolean =
let diagramReloadRequired: boolean =
lastAlignmentItem?.objectTitle === 'reload'
? lastAlignmentItem?.objectType === 'true'
: JSON.stringify(this.alignmentDataCache) !== JSON.stringify(alignmentData);

if (needsUpdate) {
if (diagramReloadRequired) {
if (lastAlignmentItem?.objectTitle === 'reload') {
alignmentData.alignmentObjectDtoList.pop();
}
Expand Down

0 comments on commit 3de5fda

Please sign in to comment.