피벗에 필터링 안되던거 수정

This commit is contained in:
leeheejin 2026-01-21 16:01:58 +09:00
parent fbd7e89c8a
commit cb8b434434
1 changed files with 2 additions and 2 deletions

View File

@ -500,9 +500,9 @@ export const PivotGridComponent: React.FC<PivotGridProps> = ({
const filteredData = useMemo(() => {
if (!data || data.length === 0) return data;
// 필터 영역의 필드들로 데이터 필터링
// 모든 영역(행/열/필터)의 필터 값이 있는 필드로 데이터 필터링
const activeFilters = fields.filter(
(f) => f.area === "filter" && f.filterValues && f.filterValues.length > 0
(f) => f.filterValues && f.filterValues.length > 0
);
if (activeFilters.length === 0) return data;