Skip to content

Commit

Permalink
chore: hot fixes for logs feature (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
roshaans committed Nov 16, 2023
1 parent 59cc68d commit c870a32
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 45 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/Editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,12 @@ const Editor = ({
height: "85vh",
}}
>
{!indexerDetails.code && (
{!indexerDetails.code && !isCreateNewIndexer && (
<Alert className="px-3 pt-3" variant="danger">
Indexer Function could not be found. Are you sure this indexer exists?
</Alert>
)}
{indexerDetails.code && <>
{(indexerDetails.code || isCreateNewIndexer) && <>
<EditorButtons
handleFormating={handleFormating}
handleCodeGen={handleCodeGen}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Logs/IndexerLogs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ const IndexerLogsComponent = () => {
display: "flex",
flexDirection: "column",
width: "100%",
height: "85vh",
height: "100%"
}}
>
<LogButtons
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/Logs/Status.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const Status = ({ functionName, latestHeight }) => {
>
<OverlayTrigger
placement="bottom"
overlay={<Tooltip>Near's Current Block Height is {latestHeight}. Your indexer has a gap of {latestHeight - item.current_block_height} Blocks</Tooltip>}
overlay={<Tooltip> Current Block Height of Near is {latestHeight}. Your indexer has a gap of {latestHeight - item.current_block_height} Blocks</Tooltip>}
>
<ListGroup.Item>
Current Block Height:{" "}
Expand Down
7 changes: 1 addition & 6 deletions frontend/src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ overrideLocalStorage();
export default function App({ Component, pageProps }: AppProps) {
const client = new ApolloClient({
uri: `${process.env.NEXT_PUBLIC_HASURA_ENDPOINT}/v1/graphql`,
cache: new InMemoryCache(),
options: {
headers: {
"x-hasura-role": "append"
}
}
cache: new InMemoryCache()
});
return (
<NearSocialBridgeProvider waitForStorage fallback={<Spinner />}>
Expand Down
35 changes: 0 additions & 35 deletions frontend/src/pages/indexer-logs/index.js

This file was deleted.

0 comments on commit c870a32

Please sign in to comment.