.
This commit is contained in:
@@ -38,13 +38,9 @@ export const MenuCategory = ({
|
||||
const [menuIds, setMenuIds] = useState<Array<number | undefined>>([]);
|
||||
|
||||
const onClickToNavigate = (path?: string, menuId?: number) => {
|
||||
if(!!path && !!setMenuOn && !editMode && !!menuId){
|
||||
if(!!path && !!setMenuOn && !editMode){
|
||||
setMenuOn(false);
|
||||
navigate(path, {
|
||||
state: {
|
||||
menuId: menuId
|
||||
}
|
||||
});
|
||||
navigate(path);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -125,7 +121,7 @@ export const MenuCategory = ({
|
||||
rs.push(
|
||||
<li
|
||||
key={ `menu-item-key-${menuId}-${i}` }
|
||||
onClick={ () => onClickToNavigate(subMenu[i]?.programPath, subMenu[i]?.menuId) }
|
||||
onClick={ () => onClickToNavigate(subMenu[i]?.programPath) }
|
||||
>
|
||||
<span>{ displayName }</span>
|
||||
<div className="check_box_scrap">
|
||||
|
||||
Reference in New Issue
Block a user