Skip to content

Commit

Permalink
fix: Do not show "Run SPARQL" button if SPARQL_EDITOR_URL is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
ptbrowne committed May 30, 2022
1 parent b32cab1 commit d90bca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/chart-footnotes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const ChartFootnotes = ({
</Typography>
</Button>
)}
{sparqlEditorUrl !== undefined && (
{sparqlEditorUrl && (
<RunSparqlQuery url={sparqlEditorUrl as string} />
)}
{configKey && shareUrl && (
Expand Down

1 comment on commit d90bca3

@vercel
Copy link

@vercel vercel bot commented on d90bca3 May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

visualization-tool – ./

visualization-tool-ixt1.vercel.app
visualization-tool-git-main-ixt1.vercel.app
visualization-tool-alpha.vercel.app

Please sign in to comment.