diff options
author | srichman333 <sarah_n_richman@brown.edu> | 2024-01-29 16:44:15 -0500 |
---|---|---|
committer | srichman333 <sarah_n_richman@brown.edu> | 2024-01-29 16:44:15 -0500 |
commit | 9ceb805cec6fa3cab9236b46a1865bbf3436605c (patch) | |
tree | b32fa6e4714a8a89fcf1f3275a9a9b9170ce55ff | |
parent | 04d0021899a07ec877d470e914cabbd0897cccea (diff) |
live schema toggle fix
-rw-r--r-- | src/client/views/nodes/DataVizBox/DataVizBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/DataVizBox/DataVizBox.tsx b/src/client/views/nodes/DataVizBox/DataVizBox.tsx index 742dc60d1..1cd72e29a 100644 --- a/src/client/views/nodes/DataVizBox/DataVizBox.tsx +++ b/src/client/views/nodes/DataVizBox/DataVizBox.tsx @@ -306,7 +306,7 @@ export class DataVizBox extends ViewBoxAnnotatableComponent<FieldViewProps>() im const ogHref = CsvCast(ogDoc[this.fieldKey])? CsvCast(ogDoc[this.fieldKey]).url.href : undefined; const href = CsvCast(this.Document[this.fieldKey]).url.href if (ogHref && !DataVizBox.datasetSchemaOG.has(href)){ // sets original dataset to the var - DataVizBox.datasetSchemaOG.set(href, []); + DataVizBox.datasetSchemaOG.set(href, current); fetch('/csvData?uri=' + ogHref) .then(res => res.json().then(action(res => !res.errno && DataVizBox.datasetSchemaOG.set(href, res)))); } |