You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by li...@apache.org on 2026/04/11 00:18:35 UTC

(texera) branch xinyuan-dataset-selector updated: fix fmt

This is an automated email from the ASF dual-hosted git repository.

linxinyuan pushed a commit to branch xinyuan-dataset-selector
in repository https://gitbox.apache.org/repos/asf/texera.git


The following commit(s) were added to refs/heads/xinyuan-dataset-selector by this push:
     new 42c401c836 fix fmt
42c401c836 is described below

commit 42c401c8364185192c1c81c90860d8f23524388e
Author: Xinyuan Lin <xi...@uci.edu>
AuthorDate: Fri Apr 10 17:18:30 2026 -0700

    fix fmt
---
 .../dataset-version-selector/dataset-version-selector.component.ts   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/frontend/src/app/workspace/component/dataset-version-selector/dataset-version-selector.component.ts b/frontend/src/app/workspace/component/dataset-version-selector/dataset-version-selector.component.ts
index 1640380655..8f4dc94e4f 100644
--- a/frontend/src/app/workspace/component/dataset-version-selector/dataset-version-selector.component.ts
+++ b/frontend/src/app/workspace/component/dataset-version-selector/dataset-version-selector.component.ts
@@ -48,8 +48,9 @@ export class DatasetVersionSelectorComponent extends FieldType<FieldTypeConfig>
       .pipe(untilDestroyed(this))
       .subscribe(datasets => {
         this.datasets = datasets;
-        const [_, ownerEmail, datasetName, versionName] = this.formControl.value.split("/");
-        if (versionName) {
+        const path = this.formControl.value.split("/")
+        if (path) {
+          const [_, ownerEmail, datasetName, versionName] = this.formControl.value.split("/");
           this.selectedDataset = this.datasets.find(
             dataset => dataset.ownerEmail === ownerEmail && dataset.dataset.name === datasetName
           );