Skip to content

Commit

Permalink
fix: remove duplicate dsl parser (#612)
Browse files Browse the repository at this point in the history
  • Loading branch information
islxyqwe authored Aug 29, 2024
1 parent 9ea11d0 commit f486465
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import { formatExportedChartDatas } from "./utils/save";
import { tracker } from "@/utils/tracker";
import Notification from "./notify"
import initDslParser from "@kanaries/gw-dsl-parser";
import wasmPath from "@kanaries/gw-dsl-parser/gw_dsl_parser_bg.wasm?url";
import {
Select,
SelectContent,
Expand Down Expand Up @@ -356,7 +355,7 @@ const initOnJupyter = async(props: IAppProps) => {
if (props.needLoadDatas) {
comm.sendMsgAsync("request_data", {}, null);
}
await initDslParser(wasmPath);
await initDslParser();
}

const initOnHttpCommunication = async(props: IAppProps) => {
Expand All @@ -366,7 +365,7 @@ const initOnHttpCommunication = async(props: IAppProps) => {
const visSpecResp = await comm.sendMsg("get_latest_vis_spec", {});
props.visSpec = visSpecResp["data"]["visSpec"];
}
await initDslParser(wasmPath);
await initDslParser();
}

const defaultInit = async(props: IAppProps) => {}
Expand Down

0 comments on commit f486465

Please sign in to comment.