Skip to content

Commit

Permalink
Check on assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Elblinator committed Sep 26, 2024
1 parent 3787db4 commit 4ef92fe
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,7 @@ export class MotionExportDialogComponent extends BaseUiComponent implements OnIn
@ViewChild(MOTION_PDF_OPTIONS.ContinuousText)
public continuousTextButton!: MatButtonToggle;

private _isCSVExport = false;

protected set isCSVExport(format: ExportFileFormat) {
this._isCSVExport = format === ExportFileFormat.CSV;
}

protected get isCSVExport(): boolean {
return this._isCSVExport;
}
public isCSVExport = false;

/**
* Constructor
Expand Down Expand Up @@ -188,7 +180,7 @@ export class MotionExportDialogComponent extends BaseUiComponent implements OnIn
* @param format
*/
private onFormatChange(format: ExportFileFormat): void {
this.isCSVExport = format;
this.isCSVExport = format === ExportFileFormat.CSV;

// XLSX cannot have "content"
if (format === ExportFileFormat.XLSX) {
Expand Down

0 comments on commit 4ef92fe

Please sign in to comment.