Skip to content

Commit 31f5df7

Browse files
committed
fix: 잘못된 ID값을 넘겨 옵션 수정이 불가능하던 문제 수정
1 parent 554b5dc commit 31f5df7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/shop/src/components/features/order.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const OrderProductRelationItem: React.FC<OrderProductRelationItemProps> = ({
6161
.reduce(
6262
(acc, optionRel) => ({
6363
...acc,
64-
[optionRel.product_option_group.id]: optionRel.custom_response,
64+
[optionRel.id]: optionRel.custom_response,
6565
}),
6666
{}
6767
);

packages/shop/src/schemas/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ namespace ShopSchemas {
145145
};
146146
options: (
147147
| {
148+
id: string;
148149
product_option_group: {
149150
id: string;
150151
name: string;
@@ -160,6 +161,7 @@ namespace ShopSchemas {
160161
custom_response: null;
161162
}
162163
| {
164+
id: string;
163165
product_option_group: {
164166
id: string;
165167
name: string;

0 commit comments

Comments
 (0)