Revert "[지라이슈없음] getErrorMessage errorCode가 null일 경우 노출 안 되도록 처리"

This reverts commit 155a152e04.
This commit is contained in:
hyunwoo93.cha
2025-01-17 13:25:36 +09:00
parent 155a152e04
commit 1e6a3b7015
2 changed files with 6 additions and 31 deletions

View File

@@ -448,36 +448,13 @@ export default function TabLayout({ topPanelName, onTabActivated, panelInfo }) {
}
}, [showSubTab]);
const spotToPanelJob = useRef(
new Job(() => {
const node = document.querySelector(`[id="${SpotlightIds.TPANEL}"]`);
if (node) {
Spotlight.focus(node);
}
})
);
const spotToPanel = useCallback((delayed = false) => {
const spotToPanel = useCallback(() => {
const node = document.querySelector(`[id="${SpotlightIds.TPANEL}"]`);
if (node) {
if (delayed) {
spotToPanelJob.current.start(() => {
Spotlight.focus(node);
});
} else {
Spotlight.focus(node);
}
Spotlight.focus(node);
}
}, []);
useEffect(() => {
return () => {
spotToPanelJob.current.stop();
};
}, []);
const handleNavigation = useCallback(
({ index, target }) => {
setMainSelectedIndex(index);
@@ -504,7 +481,7 @@ export default function TabLayout({ topPanelName, onTabActivated, panelInfo }) {
// 홈패널일 경우
if (target && target[0]?.name === panel_names.HOME_PANEL) {
deActivateTab();
spotToPanel(true);
spotToPanel();
dispatch(resetPanels());
dispatch(checkEnterThroughGNB(true));
dispatch(resetHomeInfo());

View File

@@ -547,11 +547,9 @@ export const getErrorMessage = (errorCode, retMsg, retDetailCode) => {
group.codes.includes(Number(errorCode))
);
const errorPrefix = errorCode
? retDetailCode
? `[${errorCode}-${retDetailCode}] `
: `[${errorCode}] `
: "";
const errorPrefix = retDetailCode
? `[${errorCode}-${retDetailCode}] `
: `[${errorCode}] `;
if (group) {
return errorPrefix + group.message;