Skip to content

Commit

Permalink
Set counter mode if no dataColumn selected. For ravel #539.
Browse files Browse the repository at this point in the history
  • Loading branch information
highperformancecoder committed May 21, 2024
1 parent c71bd85 commit 8edca28
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ export class ImportCsvComponent extends Zoomable implements OnInit, AfterViewIni
async handleSubmit() {
this.updateSpecFromForm();

if (this.dialogState.spec.dataCols.length===0)
this.dialogState.spec.counter=true;
let v = new VariableBase(this.electronService.minsky.canvas.item);
// returns an error message on error
const res = await v.importFromCSV(this.url.value, this.dialogState.spec) as unknown as string;
Expand Down

0 comments on commit 8edca28

Please sign in to comment.