From 7ca2eb85a226017c86be8e59b79776be752e8f19 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 29 Jul 2024 17:47:13 -0400 Subject: [PATCH] chore --- frontend/replacement.dev.json | 2 +- frontend/src/components/Editor/EditorComponents/Editor.tsx | 7 +++---- frontend/widgets/src/QueryApi.Launchpad.jsx | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/replacement.dev.json b/frontend/replacement.dev.json index 56dc9422..783dd1a8 100644 --- a/frontend/replacement.dev.json +++ b/frontend/replacement.dev.json @@ -1,7 +1,7 @@ { "REPL_ACCOUNT_ID": "dev-queryapi.dataplatform.near", "REPL_GRAPHQL_ENDPOINT": "https://near-queryapi.dev.api.pagoda.co", - "REPL_EXTERNAL_APP_URL": "http://localhost:3000", + "REPL_EXTERNAL_APP_URL": "https://queryapi-frontend-vcqilefdcq-ew.a.run.app", "REPL_REGISTRY_CONTRACT_ID": "dev-queryapi.dataplatform.near", "REPL_QUERY_API_USAGE_URL": "https://storage.googleapis.com/databricks-near-query-runner/output/query-api-usage/indexers_dev.json" } diff --git a/frontend/src/components/Editor/EditorComponents/Editor.tsx b/frontend/src/components/Editor/EditorComponents/Editor.tsx index 0f26df2a..b815ea73 100644 --- a/frontend/src/components/Editor/EditorComponents/Editor.tsx +++ b/frontend/src/components/Editor/EditorComponents/Editor.tsx @@ -42,7 +42,7 @@ interface WizardResponse { } const fetchWizardData = (req: string): Promise => { return request('launchpad-create-indexer', req); -} +}; const Editor: React.FC = (): ReactElement => { const { indexerDetails, isCreateNewIndexer } = useContext(IndexerDetailsContext); @@ -132,8 +132,7 @@ const Editor: React.FC = (): ReactElement => { } catch (error) { throw error; } - } - + }; useEffect(() => { const fetchData = async () => { @@ -178,7 +177,7 @@ const Editor: React.FC = (): ReactElement => { schemaErrorHandler(schemaError); formattedSchema && setSchema(formattedSchema); } - }, [indexerDetails.schema,]); + }, [indexerDetails.schema]); useEffect(() => { const { error: schemaError } = validateSQLSchema(schema); diff --git a/frontend/widgets/src/QueryApi.Launchpad.jsx b/frontend/widgets/src/QueryApi.Launchpad.jsx index 27799a62..b429a2ad 100644 --- a/frontend/widgets/src/QueryApi.Launchpad.jsx +++ b/frontend/widgets/src/QueryApi.Launchpad.jsx @@ -680,7 +680,7 @@ return ( )} - Generate + Generate