diff --git a/apps/web/src/components/navbar/NavbarMenu.tsx b/apps/web/src/components/navbar/NavbarMenu.tsx index 060ea009..08760372 100644 --- a/apps/web/src/components/navbar/NavbarMenu.tsx +++ b/apps/web/src/components/navbar/NavbarMenu.tsx @@ -27,7 +27,9 @@ export function NavbarMenu() { return (
Please select at least one event to see the chart.
@@ -58,7 +58,7 @@ export const Chart = memo( if (chart.isFetching) { return (Loading...
Something went wrong...
No data
Chart type "{chartType}" is not supported yet.
diff --git a/apps/web/src/components/report/reportSlice.ts b/apps/web/src/components/report/reportSlice.ts index 5f66fc65..ccf8f0de 100644 --- a/apps/web/src/components/report/reportSlice.ts +++ b/apps/web/src/components/report/reportSlice.ts @@ -19,7 +19,7 @@ type InitialState = IChartInput & { // First approach: define the initial state using that type const initialState: InitialState = { dirty: false, - name: 'screen_view', + name: 'Untitled', chartType: 'linear', interval: 'day', breakdowns: [], @@ -30,7 +30,7 @@ const initialState: InitialState = { }; export const reportSlice = createSlice({ - name: 'counter', + name: 'report', initialState, reducers: { resetDirty(state) { @@ -50,6 +50,10 @@ export const reportSlice = createSlice({ dirty: false, }; }, + setName(state, action: PayloadAction