Skip to content

Commit

Permalink
error search
Browse files Browse the repository at this point in the history
  • Loading branch information
Olerinskaia committed Dec 23, 2024
1 parent 7af533c commit cb6e010
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions app/javascript/component/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ export default async function renderComponent(token, components, historyQueryID,
componentObject.init(widgetFrame)

const data = getBaseClass(ComponentConstructor, componentObject.config);
// data.unshift({[WidgetConfig.name]: serialize(WidgetConfig)});
data.unshift({['networkConfig']: serialize(WidgetConfig)});
data.unshift({[WidgetConfig.name]: serialize(WidgetConfig)});
widgetFrame.getStreamingAPIButton.onclick = getAPIButton(data, variables, subscriptionQueryID)
widgetFrame.getMempoolButton.onclick = getAPIMempoolButton(data, variables, subscriptionQueryID, subscriptionDataSource)
widgetFrame.getHistoryAPIButton.onclick = getAPIButton(data, variables, historyQueryID)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export default class WidgetConfig {
export default class WidgetNetworkConfig {
static getBlockchainInfo() {
return [
{
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/packs/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import ClipboardJS from "clipboard";
import moment from "moment";
import { createClient } from "graphql-ws";
import serialize from "serialize-javascript";
import WidgetConfig from "../component/componentDescription/WidgetConfig";
import WidgetNetworkConfig from "../component/componentDescription/WidgetConfig";
import BootstrapTableComponent from "../component/componentDescription/BootstrapTableComponent";
import BootstrapCardComponent from "../component/componentDescription/BootstrapCardComponent";
import GraphsComponent from "../component/componentDescription/GraphsComponent";
Expand Down Expand Up @@ -75,7 +75,7 @@ global.TradingView = TradingView;
global.serialize = serialize;
global.createClient = createClient;
global.createChart = createChart;
global.WidgetConfig = WidgetConfig;
global.WidgetConfig = WidgetNetworkConfig;
global.BootstrapTableComponent = BootstrapTableComponent;
global.GraphsComponent = GraphsComponent;
global.TradingGraphsComponent = TradingGraphsComponent;
Expand Down

0 comments on commit cb6e010

Please sign in to comment.