Refactor DashboardPage getDashboard & getDashboardsNames instance methods to assignment syntax

pull/3739/head
Jared Scheib 2018-06-22 18:46:28 -07:00
parent 7c88baaa06
commit 82e28efac8
1 changed files with 3 additions and 3 deletions

View File

@ -369,9 +369,9 @@ class DashboardPage extends Component<Props, State> {
this.setState({windowHeight: window.innerHeight})
}
private async getDashboard(): Promise<
private getDashboard = async (): Promise<
DashboardActions.GetDashboardWithHydratedAndSyncedTempVarsAsyncThunk
> {
> => {
const {
dashboardID,
dashboardActions: {getDashboardWithHydratedAndSyncedTempVarsAsync},
@ -388,7 +388,7 @@ class DashboardPage extends Component<Props, State> {
)
}
private async getDashboardsNames(): Promise<void> {
private getDashboardsNames = async (): Promise<void> => {
const {
params: {sourceID},
dashboardActions: {getDashboardsNamesAsync},