fix: /dashboards props type

This commit is contained in:
Vyacheslav Matyukhin 2022-04-07 22:47:09 +03:00
parent 7c89a1c6ad
commit ebe09bd999
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -14,8 +14,8 @@ import { getDashboardForecastsByDashboardId } from "../web/worker/getDashboardFo
interface Props {
initialDashboardForecasts: FrontendForecast[];
initialDashboardId?: string;
initialDashboardItem?: DashboardItem;
initialDashboardId: string | null;
initialDashboardItem: DashboardItem | null;
platformsConfig: PlatformConfig[];
}
@ -33,8 +33,8 @@ export const getServerSideProps: GetServerSideProps<Props> = async (
props: {
platformsConfig,
initialDashboardForecasts: [],
initialDashboardId: undefined,
initialDashboardItem: undefined,
initialDashboardId: null,
initialDashboardItem: null,
},
};
}