local storage clear set fix
This commit is contained in:
parent
d9e932ce8c
commit
dcbc288faf
@ -45,7 +45,7 @@ export function AuthProvider({ children }: { children: ReactNode }) {
|
|||||||
setUserEmail(null);
|
setUserEmail(null);
|
||||||
setIsAdmin(false);
|
setIsAdmin(false);
|
||||||
setRoles([]);
|
setRoles([]);
|
||||||
localStorage.removeItem('krishna_sales_user_email');
|
localStorage.clear();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -38,7 +38,7 @@ export function DailyLogsPage() {
|
|||||||
<DailyLogsView
|
<DailyLogsView
|
||||||
mapComponent={mapComponent}
|
mapComponent={mapComponent}
|
||||||
refreshKey={refreshKey}
|
refreshKey={refreshKey}
|
||||||
presetAlias="my_logs"
|
presetAlias=""
|
||||||
onRowClick={(row) => {
|
onRowClick={(row) => {
|
||||||
const id = row.instance_id as number | string | undefined;
|
const id = row.instance_id as number | string | undefined;
|
||||||
if (id != null) navigate(`/daily/${id}`);
|
if (id != null) navigate(`/daily/${id}`);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user