mirror of
https://github.com/apache/superset.git
synced 2026-04-23 18:14:56 +00:00
chore: enable no-unused-vars and prefer-template eslint rules (#10350)
This commit is contained in:
@@ -77,10 +77,9 @@ class ShareSqlLabQuery extends React.Component {
|
||||
let savedQueryToastContent;
|
||||
|
||||
if (this.props.queryEditor.remoteId) {
|
||||
savedQueryToastContent =
|
||||
window.location.origin +
|
||||
window.location.pathname +
|
||||
`?savedQueryId=${this.props.queryEditor.remoteId}`;
|
||||
savedQueryToastContent = `${
|
||||
window.location.origin + window.location.pathname
|
||||
}?savedQueryId=${this.props.queryEditor.remoteId}`;
|
||||
this.setState({ shortUrl: savedQueryToastContent });
|
||||
} else {
|
||||
savedQueryToastContent = t('Please save the query to enable sharing');
|
||||
|
||||
Reference in New Issue
Block a user