Skip to content

Commit

Permalink
Fixed non assignment statement
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPienaar committed Sep 26, 2023
1 parent c26f125 commit ba28fc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/app/edit/edit.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class EditComponent implements AfterViewInit, OnInit {
console.log("Current Object:\n", this.currentContextMenuObject);
let diffIndex = this.currentContextMenuObject.S3DiffIndex;
if (!diffIndex)
this.currentContextMenuObject.ChildDiffs[0].S3DiffIndex;
diffIndex = this.currentContextMenuObject.ChildDiffs[0].S3DiffIndex;
if (await this.versioningApiService.restoreVersion(this.editService.getMarkdownID() as string, diffIndex, this.currentContextMenuObject.Content)) {
this.messageService.add({
severity: 'success',
Expand Down

0 comments on commit ba28fc4

Please sign in to comment.