fix: PopCategoryTree parent_id → parent_group_id 타입 에러 수정

This commit is contained in:
SeongHyun Kim 2026-03-31 01:43:28 +09:00
parent 741fef148c
commit 6c1fb5b221
1 changed files with 4 additions and 4 deletions

View File

@ -761,9 +761,9 @@ export function PopCategoryTree({
const handleMoveGroupUp = async (targetGroup: PopScreenGroup) => {
try {
// 같은 부모의 형제 그룹들 찾기
const parentId = targetGroup.parent_id;
const parentId = targetGroup.parent_group_id;
const siblingGroups = groups
.filter((g) => g.parent_id === parentId)
.filter((g) => g.parent_group_id === parentId)
.sort((a, b) => (a.display_order || 0) - (b.display_order || 0));
const currentIndex = siblingGroups.findIndex((g) => g.id === targetGroup.id);
@ -792,9 +792,9 @@ export function PopCategoryTree({
const handleMoveGroupDown = async (targetGroup: PopScreenGroup) => {
try {
// 같은 부모의 형제 그룹들 찾기
const parentId = targetGroup.parent_id;
const parentId = targetGroup.parent_group_id;
const siblingGroups = groups
.filter((g) => g.parent_id === parentId)
.filter((g) => g.parent_group_id === parentId)
.sort((a, b) => (a.display_order || 0) - (b.display_order || 0));
const currentIndex = siblingGroups.findIndex((g) => g.id === targetGroup.id);