카테고리>kids 아이템로드 오류 continueGetSubCagegory totalCount 가 20개일때 예외처리
This commit is contained in:
@@ -390,21 +390,21 @@ function AppBase(props) {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ErrorBoundary>
|
// <ErrorBoundary>
|
||||||
{webOSVersion === "" ? null : Number(webOSVersion) < 4 ? (
|
// {webOSVersion === "" ? null : Number(webOSVersion) < 4 ? (
|
||||||
<NotSupportedVersion />
|
// <NotSupportedVersion />
|
||||||
) : (
|
// ) : (
|
||||||
<MainView
|
<MainView
|
||||||
initService={initService}
|
initService={initService}
|
||||||
className={
|
className={
|
||||||
typeof window === "object" &&
|
typeof window === "object" &&
|
||||||
!window.PalmSystem &&
|
!window.PalmSystem &&
|
||||||
!cursorVisible &&
|
!cursorVisible &&
|
||||||
css.preventMouse
|
css.preventMouse
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
// )}
|
||||||
</ErrorBoundary>
|
// </ErrorBoundary>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -260,6 +260,11 @@ export const continueGetSubCategory =
|
|||||||
[];
|
[];
|
||||||
const totalCount = subCategoryData[key]?.total ?? 0;
|
const totalCount = subCategoryData[key]?.total ?? 0;
|
||||||
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
|
const startIndex = CATEGORY_DATA_MAX_RESULTS_LIMIT * (pageNo - 1);
|
||||||
|
|
||||||
|
if (totalCount <= startIndex) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(startIndex <= 1 && !targetData) ||
|
(startIndex <= 1 && !targetData) ||
|
||||||
targetData[startIndex] ||
|
targetData[startIndex] ||
|
||||||
|
|||||||
@@ -1,22 +1,17 @@
|
|||||||
import React, { useCallback } from 'react';
|
import React, { useCallback } from "react";
|
||||||
|
|
||||||
import {
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
useDispatch,
|
|
||||||
useSelector,
|
|
||||||
} from 'react-redux';
|
|
||||||
|
|
||||||
import SpotlightContainerDecorator
|
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||||
from '@enact/spotlight/SpotlightContainerDecorator';
|
|
||||||
|
|
||||||
import NoResultsImage
|
import NoResultsImage from "../../../../../assets/images/searchpanel/img-search-nodata.png";
|
||||||
from '../../../../../assets/images/searchpanel/img-search-nodata.png';
|
import { pushPanel } from "../../../../actions/panelActions";
|
||||||
import { pushPanel } from '../../../../actions/panelActions';
|
import SectionTitle from "../../../../components/SectionTitle/SectionTitle";
|
||||||
import SectionTitle from '../../../../components/SectionTitle/SectionTitle';
|
import TItemCard from "../../../../components/TItemCard/TItemCard";
|
||||||
import TItemCard from '../../../../components/TItemCard/TItemCard';
|
import TScroller from "../../../../components/TScroller/TScroller";
|
||||||
import TScroller from '../../../../components/TScroller/TScroller';
|
import { panel_names } from "../../../../utils/Config";
|
||||||
import { panel_names } from '../../../../utils/Config';
|
import { $L } from "../../../../utils/helperMethods";
|
||||||
import { $L } from '../../../../utils/helperMethods';
|
import css from "./NoResultsCategoryItems.module.less";
|
||||||
import css from './NoResultsCategoryItems.module.less';
|
|
||||||
|
|
||||||
const Container = SpotlightContainerDecorator({ enterTo: null }, "div");
|
const Container = SpotlightContainerDecorator({ enterTo: null }, "div");
|
||||||
export default function NoResultsCategoryItems() {
|
export default function NoResultsCategoryItems() {
|
||||||
|
|||||||
@@ -175,11 +175,12 @@ const CategoryPanel = ({ panelInfo, isOnTop, spotlightId }) => {
|
|||||||
const tabType = tabRef.current === INDEX_SHOWS ? "CAT00101" : "CAT00102";
|
const tabType = tabRef.current === INDEX_SHOWS ? "CAT00101" : "CAT00102";
|
||||||
const filterType = dropDownTabRef.current === 0 ? "CAT00202" : "CAT00201";
|
const filterType = dropDownTabRef.current === 0 ? "CAT00202" : "CAT00201";
|
||||||
const pageSize = "20";
|
const pageSize = "20";
|
||||||
|
|
||||||
if (
|
if (
|
||||||
categoryParams.lgCatCd !== lgCatCd ||
|
categoryParams?.lgCatCd !== lgCatCd ||
|
||||||
categoryParams.tabType !== tabType ||
|
categoryParams?.tabType !== tabType ||
|
||||||
categoryParams.filterType !== filterType ||
|
categoryParams?.filterType !== filterType ||
|
||||||
categoryParams.pageSize !== pageSize
|
categoryParams?.pageSize !== pageSize
|
||||||
) {
|
) {
|
||||||
dispatch(
|
dispatch(
|
||||||
getSubCategory(
|
getSubCategory(
|
||||||
|
|||||||
Reference in New Issue
Block a user