update
This commit is contained in:
@ -3,8 +3,7 @@ import { getData, setData } from '@/utils';
|
|||||||
import { type AuthModel } from './_models';
|
import { type AuthModel } from './_models';
|
||||||
// import https from 'https'
|
// import https from 'https'
|
||||||
|
|
||||||
const AUTH_LOCAL_STORAGE_KEY = `${import.meta.env.VITE_APP_NAME}-auth-v${import.meta.env.VITE_APP_VERSION
|
const AUTH_LOCAL_STORAGE_KEY = `${import.meta.env.VITE_APP_NAME}-auth-v${import.meta.env.VITE_APP_VERSION}`;
|
||||||
}`;
|
|
||||||
|
|
||||||
const getAuth = (): AuthModel | undefined => {
|
const getAuth = (): AuthModel | undefined => {
|
||||||
try {
|
try {
|
||||||
|
|||||||
@ -160,7 +160,9 @@ const LogActivityContextProvider = ({ children }: { children: React.ReactNode })
|
|||||||
);
|
);
|
||||||
|
|
||||||
const doExportData = async (sorting: any, filter: any) => {
|
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;
|
const parsedUser = user ? JSON.parse(user) : null;
|
||||||
sorting = sorting.length === 0 ? [{ id: 'user_activity.created_at', desc: false }] : sorting;
|
sorting = sorting.length === 0 ? [{ id: 'user_activity.created_at', desc: false }] : sorting;
|
||||||
filter = filter && filter.length > 0 ? filter : [];
|
filter = filter && filter.length > 0 ? filter : [];
|
||||||
|
|||||||
Reference in New Issue
Block a user