From 68b97e63abdf556f5619c21876e2114048c52d0f Mon Sep 17 00:00:00 2001 From: guerler Date: Sun, 17 Nov 2024 12:54:26 +0300 Subject: [PATCH] Fix data column provider interface --- public/galaxy-charts.xml | 5 +++++ src/api/datasets.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/public/galaxy-charts.xml b/public/galaxy-charts.xml index ca4da87..47429bd 100644 --- a/public/galaxy-charts.xml +++ b/public/galaxy-charts.xml @@ -134,5 +134,10 @@ data_column true + + track_column_2 + + data_column + \ No newline at end of file diff --git a/src/api/datasets.ts b/src/api/datasets.ts index dc53629..ac3e498 100644 --- a/src/api/datasets.ts +++ b/src/api/datasets.ts @@ -12,7 +12,7 @@ export async function datasetsGetColumns(datasetId: string, columnList: string[] const columnLength = columnList.length; const results: any[][] = new Array(columnLength).fill(null).map(() => []); - for (const row of data) { + for (const row of data.data) { for (const j in row) { const index = Number(j); const value = row[j];