From 64dc493f04a04b2be8d3fef7ae47428f4e03ffa9 Mon Sep 17 00:00:00 2001 From: yougyoung94 Date: Thu, 21 Oct 2021 21:51:23 +0900 Subject: [PATCH] leave only cirtical changes --- .../src/dashboard/components/Header/index.jsx | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/superset-frontend/src/dashboard/components/Header/index.jsx b/superset-frontend/src/dashboard/components/Header/index.jsx index 866bbcde96f6..b08072e6192d 100644 --- a/superset-frontend/src/dashboard/components/Header/index.jsx +++ b/superset-frontend/src/dashboard/components/Header/index.jsx @@ -187,18 +187,6 @@ class Header extends React.PureComponent { const { refreshFrequency } = this.props; this.startPeriodicRender(refreshFrequency * 1000); } - if (this.props.dashboardInfo.id !== prevProps.dashboardInfo.id) { - const { dashboardInfo, user } = this.props; - if (user && isFeatureEnabled(FeatureFlag.ALERT_REPORTS)) { - // this is in case there is an anonymous user. - this.props.fetchUISpecificReport( - user.userId, - 'dashboard_id', - 'dashboards', - dashboardInfo.id, - ); - } - } } UNSAFE_componentWillReceiveProps(nextProps) {