fix(validation) : support legacy weapon paths
CI / Verify (push) Successful in 1m2s
CI / Build immutable images and deploy (push) Has been cancelled

This commit is contained in:
2026-09-04 00:34:31 +07:00 Unverified
parent c9e0fe02e3
commit 338cd51d25
+1
View File
@@ -41,6 +41,7 @@ function issueContext(section: GuideValidationSection, path: readonly PropertyKe
const memberIndex = indexAfter(path, "members");
const sectionIndex = indexAfter(path, "sections");
if (section === "weapon" && groupIndex === null && rowIndex !== null) return `อาวุธอันดับ ${rowIndex + 1}`;
if (section === "weapon" && groupIndex !== null) {
return rowIndex === null ? `Condition ${groupIndex + 1}` : `Condition ${groupIndex + 1} · อาวุธอันดับ ${rowIndex + 1}`;
}