Refactor DashboardPage getDashboard & getDashboardsNames instance methods to assignment syntax
parent
7c88baaa06
commit
82e28efac8
|
@ -369,9 +369,9 @@ class DashboardPage extends Component<Props, State> {
|
||||||
this.setState({windowHeight: window.innerHeight})
|
this.setState({windowHeight: window.innerHeight})
|
||||||
}
|
}
|
||||||
|
|
||||||
private async getDashboard(): Promise<
|
private getDashboard = async (): Promise<
|
||||||
DashboardActions.GetDashboardWithHydratedAndSyncedTempVarsAsyncThunk
|
DashboardActions.GetDashboardWithHydratedAndSyncedTempVarsAsyncThunk
|
||||||
> {
|
> => {
|
||||||
const {
|
const {
|
||||||
dashboardID,
|
dashboardID,
|
||||||
dashboardActions: {getDashboardWithHydratedAndSyncedTempVarsAsync},
|
dashboardActions: {getDashboardWithHydratedAndSyncedTempVarsAsync},
|
||||||
|
@ -388,7 +388,7 @@ class DashboardPage extends Component<Props, State> {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
private async getDashboardsNames(): Promise<void> {
|
private getDashboardsNames = async (): Promise<void> => {
|
||||||
const {
|
const {
|
||||||
params: {sourceID},
|
params: {sourceID},
|
||||||
dashboardActions: {getDashboardsNamesAsync},
|
dashboardActions: {getDashboardsNamesAsync},
|
||||||
|
|
Loading…
Reference in New Issue