Skip to content

Commit

Permalink
Fix bug with dashboard selection on back nav
Browse files Browse the repository at this point in the history
The state should not be updated by the get_default_dashboard function
  • Loading branch information
mshriver committed Nov 19, 2024
1 parent d6225dd commit 7c51cfd
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions frontend/src/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ export class Dashboard extends React.Component {
'selectedDashboard': targetObject.defaultDashboard,
'dashboardInputValue': targetObject.defaultDashboard?.title
})
} else {
this.setState({
'selectedDashboard': 'Select a dashboard',
'dashboardInputValue': 'Select a dashboard'
})
}
}

Expand Down

0 comments on commit 7c51cfd

Please sign in to comment.