diff --git a/gui-js/libs/ui-components/src/lib/import-csv/import-csv.component.ts b/gui-js/libs/ui-components/src/lib/import-csv/import-csv.component.ts index 569c175d8..f5528684f 100644 --- a/gui-js/libs/ui-components/src/lib/import-csv/import-csv.component.ts +++ b/gui-js/libs/ui-components/src/lib/import-csv/import-csv.component.ts @@ -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;