mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
ESLint: Re-enable rule no-restricted-globals (#10863)
* Re-enable rule no-restricted-globals * Fix missing semicolons
This commit is contained in:
committed by
GitHub
parent
7f1012360a
commit
1908a94c7e
@@ -241,9 +241,9 @@ class ExploreViewContainer extends React.Component {
|
||||
const longUrl = getExploreLongUrl(this.props.form_data, null, false);
|
||||
try {
|
||||
if (isReplace) {
|
||||
history.replaceState(payload, title, longUrl);
|
||||
window.history.replaceState(payload, title, longUrl);
|
||||
} else {
|
||||
history.pushState(payload, title, longUrl);
|
||||
window.history.pushState(payload, title, longUrl);
|
||||
}
|
||||
} catch (e) {
|
||||
logging.warn(
|
||||
@@ -268,7 +268,7 @@ class ExploreViewContainer extends React.Component {
|
||||
}
|
||||
|
||||
handlePopstate() {
|
||||
const formData = history.state;
|
||||
const formData = window.history.state;
|
||||
if (formData && Object.keys(formData).length) {
|
||||
this.props.actions.setExploreControls(formData);
|
||||
this.props.actions.postChartFormData(
|
||||
|
||||
Reference in New Issue
Block a user