From 8fd88498f7edce481c1466380a49e524bf4cebc4 Mon Sep 17 00:00:00 2001 From: Andrew Michael McNutt Date: Thu, 18 Jan 2024 18:48:44 -0800 Subject: [PATCH] ugh --- src/lib/charts.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/charts.ts b/src/lib/charts.ts index f2706a43..1e16455c 100644 --- a/src/lib/charts.ts +++ b/src/lib/charts.ts @@ -192,16 +192,16 @@ export async function getSVG(localSpec: string, pal: Palette) { const theme = buildTheme(pal); let spec: any; - const cleanSpec = vegaDatasets.reduce((acc, x) => { - const breakKey = `url": "data/${x}`; - const joinKey = `url": "https://vega.github.io/editor/data/${x}`; - return acc.split(breakKey).join(joinKey); - }, localSpec); + // const cleanSpec = vegaDatasets.reduce((acc, x) => { + // const breakKey = `url": "data/${x}`; + // const joinKey = `url": "https://vega.github.io/editor/data/${x}`; + // return acc.split(breakKey).join(joinKey); + // }, localSpec); try { - spec = JSON.parse(cleanSpec); + spec = JSON.parse(localSpec); } catch (e) { - console.error(e, cleanSpec); + console.error(e, localSpec); return ""; } if (spec.$schema.includes("vega-lite")) {