diff --git a/plugins/frontend/src/components/PluginTabs.tsx b/plugins/frontend/src/components/PluginTabs.tsx index 4aea176..74cc4ae 100644 --- a/plugins/frontend/src/components/PluginTabs.tsx +++ b/plugins/frontend/src/components/PluginTabs.tsx @@ -65,7 +65,7 @@ export const PluginTabs = ({ () => config.getOptionalConfig('cloudCarbonFootprint.client'), [config], ); - const groupBy = useMemo(() => clientConfig.getOptionalString('groupBy') ?? 'week', [clientConfig]); + const groupBy = useMemo(() => clientConfig?.getOptionalString('groupBy') ?? 'week', [clientConfig]); const { endDate, startDate } = useMemo( () => determineDates(clientConfig), [clientConfig],