diff --git a/caravel/assets/javascripts/SqlLab/components/SqlEditorLeft.jsx b/caravel/assets/javascripts/SqlLab/components/SqlEditorLeft.jsx index e209e9ae5723..b3c7bdaf1efe 100644 --- a/caravel/assets/javascripts/SqlLab/components/SqlEditorLeft.jsx +++ b/caravel/assets/javascripts/SqlLab/components/SqlEditorLeft.jsx @@ -117,6 +117,7 @@ class SqlEditorTopToolbar extends React.Component { } render() { const tables = this.props.tables.filter((t) => (t.queryEditorId === this.props.queryEditor.id)); + const shouldShowReset = window.location.search === '?reset=1'; return (
@@ -159,9 +160,11 @@ class SqlEditorTopToolbar extends React.Component { ))}
- + {shouldShowReset && + + }
); }