This commit is contained in:
focp212@naver.com
2025-10-31 10:19:15 +09:00
parent cca9550001
commit 81c46462a3
5 changed files with 3 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ export const InfoWrap = () => {
const midOptions = useStore.getState().UserStore.selectOptionsMids;
const userMid = useStore.getState().UserStore.mid;
let midItem = midOptions.filter((value, index) => {
return value.value === userMid;
return value.value === userMid;
});
const [mid, setMid] = useState<string>((midItem.length > 0)? userMid: '');

View File

@@ -125,7 +125,7 @@ export const CalendarWrap = () => {
<div className="calendar-wrap pt-30">
<div className="input-wrapper top-select">
<select
value={ mid }
value={ mid }
onChange={ (e: ChangeEvent<HTMLSelectElement>) => setMid(e.target.value) }
>
{

View File

@@ -257,7 +257,6 @@ export interface ShortcutSaveResponse {
};
export interface ShortcutUserParams {
usrid: string;
subUserLevel?: string;
};
export interface ShortcutUserResponse {
shortcuts: Array<Shortcuts>;

View File

@@ -21,7 +21,7 @@ function FallbackComponent({
// api 에러가 아닌 경우 상위 에러 바운더리로 위임
if(!checkIsAxiosError(error)){
throw error;
}
}
if(checkIsKickOutError(error)){
return (

View File

@@ -136,7 +136,6 @@ export const SubLayout = () => {
if(userInfo.usrid){
let params: ShortcutUserParams = {
usrid: userInfo.usrid,
subUserLevel: 'MANAGER'
};
shortcutDefault(params).then((rs: ShortcutUserResponse) => {
const modifiedShortcuts = rs.shortcuts.map(shortcut => ({