From 30514801b373aab5e1558969e55c62640bb1bbc1 Mon Sep 17 00:00:00 2001 From: Antonio Davi Macedo Coelho de Castro Date: Sat, 7 Sep 2019 12:54:53 -0700 Subject: [PATCH] Fix: Data Browser is not updating accordingly --- src/dashboard/Data/Browser/DataBrowser.react.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/dashboard/Data/Browser/DataBrowser.react.js b/src/dashboard/Data/Browser/DataBrowser.react.js index b79f9174b3..c74428ff32 100644 --- a/src/dashboard/Data/Browser/DataBrowser.react.js +++ b/src/dashboard/Data/Browser/DataBrowser.react.js @@ -44,23 +44,6 @@ export default class DataBrowser extends React.Component { this.saveOrderTimeout = null; } - shouldComponentUpdate(nextProps, nextState) { - const shallowVerifyStates = [...new Set(Object.keys(this.state).concat(Object.keys(nextState)))] - .filter(stateName => stateName !== 'order'); - if (shallowVerifyStates.some(stateName => this.state[stateName] !== nextState[stateName])) { - return true; - } - if (JSON.stringify(this.state.order) !== JSON.stringify(nextState.order)) { - return true; - } - const shallowVerifyProps = [...new Set(Object.keys(this.props).concat(Object.keys(nextProps)))] - .filter(propName => propName !== 'columns'); - if (shallowVerifyProps.some(propName => this.props[propName] !== nextProps[propName])) { - return true; - } - return JSON.stringify(this.props.columns) !== JSON.stringify(nextProps.columns); - } - componentWillReceiveProps(props, context) { if (props.className !== this.props.className) { let order = ColumnPreferences.getOrder(