From 074b4fd03a5355decc61ed7d2e9562cb272fd9a2 Mon Sep 17 00:00:00 2001 From: Macbook Date: Tue, 16 Jun 2026 21:41:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=84=EB=9E=B5=20=EC=83=81=EC=84=B8?= =?UTF-8?q?=EC=84=A4=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/utils/strategyDescriptionNarrative.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frontend/src/utils/strategyDescriptionNarrative.ts b/frontend/src/utils/strategyDescriptionNarrative.ts index aefb907..1f83fd5 100644 --- a/frontend/src/utils/strategyDescriptionNarrative.ts +++ b/frontend/src/utils/strategyDescriptionNarrative.ts @@ -227,10 +227,8 @@ function describeNode( if (depth === 0 && children.length > 1) { lines.push('다음 조건을 모두 동시에 만족해야 합니다.'); } - children.forEach((child, i) => { - const sub = describeNode(child, signalType, def, depth + 1); - if (children.length > 1) lines.push(`${i + 1})`); - lines.push(...sub); + children.forEach(child => { + lines.push(...describeNode(child, signalType, def, depth + 1)); }); return lines; } @@ -242,10 +240,8 @@ function describeNode( if (depth === 0 && children.length > 1) { lines.push('다음 조건 중 하나라도 만족하면 됩니다.'); } - children.forEach((child, i) => { - const sub = describeNode(child, signalType, def, depth + 1); - if (children.length > 1) lines.push(`${i + 1})`); - lines.push(...sub); + children.forEach(child => { + lines.push(...describeNode(child, signalType, def, depth + 1)); }); return lines; }