Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin101Zhang committed Jul 29, 2024
1 parent 6315b17 commit 7ca2eb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/replacement.dev.json
Original file line number Diff line number Diff line change
@@ -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"
}
7 changes: 3 additions & 4 deletions frontend/src/components/Editor/EditorComponents/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface WizardResponse {
}
const fetchWizardData = (req: string): Promise<WizardResponse> => {
return request<WizardResponse>('launchpad-create-indexer', req);
}
};

const Editor: React.FC = (): ReactElement => {
const { indexerDetails, isCreateNewIndexer } = useContext(IndexerDetailsContext);
Expand Down Expand Up @@ -132,8 +132,7 @@ const Editor: React.FC = (): ReactElement => {
} catch (error) {
throw error;
}
}

};

useEffect(() => {
const fetchData = async () => {
Expand Down Expand Up @@ -178,7 +177,7 @@ const Editor: React.FC = (): ReactElement => {
schemaErrorHandler(schemaError);
formattedSchema && setSchema(formattedSchema);
}
}, [indexerDetails.schema,]);
}, [indexerDetails.schema]);

Check warning on line 180 in frontend/src/components/Editor/EditorComponents/Editor.tsx

View workflow job for this annotation

GitHub Actions / lint

React Hook useEffect has a missing dependency: 'storageManager'. Either include it or remove the dependency array

useEffect(() => {
const { error: schemaError } = validateSQLSchema(schema);
Expand Down
2 changes: 1 addition & 1 deletion frontend/widgets/src/QueryApi.Launchpad.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ return (
</ScrollableDiv>
</SubContainerContent>
)}
<GenerateMethodsButton onClick={generateMethods} disabled={(Object.entries(checkboxState).length === 0) || !hasSelectedMethod(checkboxState)}> Generate</GenerateMethodsButton>
<GenerateMethodsButton onClick={generateMethods} disabled={!checkboxState || !hasSelectedMethod(checkboxState)}> Generate</GenerateMethodsButton>
</SubContainerContent>
</SubContainer>
</WidgetContainer>
Expand Down

0 comments on commit 7ca2eb8

Please sign in to comment.