Skip to content
Snippets Groups Projects
Commit 3bc64557 authored by Atte Keinänen's avatar Atte Keinänen
Browse files

Fix Flow code, remove obsolete comments [ci e2e]

parent fb0ecd79
No related branches found
No related tags found
No related merge requests found
......@@ -47,12 +47,16 @@ const mapDispatchToProps = {
onChangeLocation: push
}
type DashboardAppState = {
addCardOnLoad: number|null
}
@connect(mapStateToProps, mapDispatchToProps)
@title(({ dashboard }) => dashboard && dashboard.name)
export default class DashboardApp extends Component {
state = {
state: DashboardAppState = {
addCardOnLoad: null
}
};
componentWillMount() {
let options = parseHashOptions(window.location.hash);
......
......@@ -86,7 +86,6 @@ export default (ComposedComponent: ReactClass<any>) =>
};
updateDashboardParams = () => {
// should I do it here?
let options = parseHashOptions(window.location.hash);
const setValue = (name, value) => {
if (value) {
......@@ -206,7 +205,6 @@ export default (ComposedComponent: ReactClass<any>) =>
onNightModeChange={this.setNightMode}
onFullscreenChange={this.setFullscreen}
onRefreshPeriodChange={this.setRefreshPeriod}
addDashboardOnLoad={this.addDashboardOnLoad}
/>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment