Fix global filters cause chart not to render.
@@ -13,7 +13,6 @@ export default function withHistoryLoader(WrappedComponent) {
let HistoryLoader = class extends React.Component {
constructor(props) {
super(props);
- this.selectedRuns = {};
}
_setup(props, nextProps) {
@@ -66,7 +65,7 @@ export default function withHistoryLoader(WrappedComponent) {
loadingHistory: loadingHistory,
};
});
- //console.log('selectedInfo', selectedInfo);
+ console.log('selectedInfo', selectedInfo);
let numLoaded = selectedInfo.filter(o => o.history || o.loadingHistory)
.length;
if (pollingMode || numLoaded < MAX_HISTORIES_LOADED) {
@@ -74,7 +73,6 @@ export default function withHistoryLoader(WrappedComponent) {
if (!pollingMode) {
toLoad = toLoad.filter(o => !(o.history || o.loadingHistory));
}
- //console.log('toLoad', toLoad);
if (toLoad.length > 0) {
for (var load of toLoad) {
nextProps.client.writeFragment({
@@ -104,6 +102,7 @@ export default function withHistoryLoader(WrappedComponent) {
}
});
}
+ }
nextProps.client.writeQuery({
query: FAKE_HISTORY_QUERY,
variables: {histQueryKey: nextProps.histQueryKey},
@@ -128,7 +127,6 @@ export default function withHistoryLoader(WrappedComponent) {
});
}
}
- }
componentWillMount() {
this.historyLoadedRuns = {};
@@ -140,9 +138,7 @@ export default function withHistoryLoader(WrappedComponent) {
}
render() {
- return (
- <WrappedComponent {...this.props} selectedRuns={this.selectedRuns} />
- );
+ return <WrappedComponent {...this.props} />;
}
};
