update
This commit is contained in:
@ -160,7 +160,9 @@ const LogActivityContextProvider = ({ children }: { children: React.ReactNode })
|
||||
);
|
||||
|
||||
const doExportData = async (sorting: any, filter: any) => {
|
||||
const user = localStorage.getItem('brillian-bri-tl-auth-v1=9.1.1');
|
||||
const AUTH_LOCAL_STORAGE_KEY = `${import.meta.env.VITE_APP_NAME}-auth-v${import.meta.env.VITE_APP_VERSION}`;
|
||||
|
||||
const user = localStorage.getItem(AUTH_LOCAL_STORAGE_KEY);
|
||||
const parsedUser = user ? JSON.parse(user) : null;
|
||||
sorting = sorting.length === 0 ? [{ id: 'user_activity.created_at', desc: false }] : sorting;
|
||||
filter = filter && filter.length > 0 ? filter : [];
|
||||
|
||||
Reference in New Issue
Block a user