fix: /dashboards props type
This commit is contained in:
parent
7c89a1c6ad
commit
ebe09bd999
|
@ -14,8 +14,8 @@ import { getDashboardForecastsByDashboardId } from "../web/worker/getDashboardFo
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
initialDashboardForecasts: FrontendForecast[];
|
initialDashboardForecasts: FrontendForecast[];
|
||||||
initialDashboardId?: string;
|
initialDashboardId: string | null;
|
||||||
initialDashboardItem?: DashboardItem;
|
initialDashboardItem: DashboardItem | null;
|
||||||
platformsConfig: PlatformConfig[];
|
platformsConfig: PlatformConfig[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,8 +33,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
|
||||||
props: {
|
props: {
|
||||||
platformsConfig,
|
platformsConfig,
|
||||||
initialDashboardForecasts: [],
|
initialDashboardForecasts: [],
|
||||||
initialDashboardId: undefined,
|
initialDashboardId: null,
|
||||||
initialDashboardItem: undefined,
|
initialDashboardItem: null,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user