fix: AppState 타입에 currentUserMobile 선언 추가 및 initializeAppDirectly 인자 누락 오류 수정
This commit is contained in:
@@ -9,6 +9,7 @@ export interface AppState {
|
|||||||
masterData: MasterAssetData;
|
masterData: MasterAssetData;
|
||||||
activeCharts: any[];
|
activeCharts: any[];
|
||||||
currentUserRole: 'admin' | 'user';
|
currentUserRole: 'admin' | 'user';
|
||||||
|
currentUserMobile?: string;
|
||||||
listFilters?: Record<string, any>;
|
listFilters?: Record<string, any>;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -19,6 +20,7 @@ export const state: AppState = {
|
|||||||
viewMode: 'location',
|
viewMode: 'location',
|
||||||
activeCharts: [],
|
activeCharts: [],
|
||||||
currentUserRole: 'user',
|
currentUserRole: 'user',
|
||||||
|
currentUserMobile: '',
|
||||||
listFilters: {},
|
listFilters: {},
|
||||||
masterData: {
|
masterData: {
|
||||||
users: [],
|
users: [],
|
||||||
|
|||||||
@@ -385,7 +385,7 @@ function showLoginScreen(errorMessage?: string) {
|
|||||||
|
|
||||||
if (payload.status === 'authenticated') {
|
if (payload.status === 'authenticated') {
|
||||||
clearPhonePollTimer();
|
clearPhonePollTimer();
|
||||||
initializeAppDirectly();
|
initializeAppDirectly(loginId);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user