fix(validation) : support legacy weapon paths
This commit is contained in:
@@ -41,6 +41,7 @@ function issueContext(section: GuideValidationSection, path: readonly PropertyKe
|
|||||||
const memberIndex = indexAfter(path, "members");
|
const memberIndex = indexAfter(path, "members");
|
||||||
const sectionIndex = indexAfter(path, "sections");
|
const sectionIndex = indexAfter(path, "sections");
|
||||||
|
|
||||||
|
if (section === "weapon" && groupIndex === null && rowIndex !== null) return `อาวุธอันดับ ${rowIndex + 1}`;
|
||||||
if (section === "weapon" && groupIndex !== null) {
|
if (section === "weapon" && groupIndex !== null) {
|
||||||
return rowIndex === null ? `Condition ${groupIndex + 1}` : `Condition ${groupIndex + 1} · อาวุธอันดับ ${rowIndex + 1}`;
|
return rowIndex === null ? `Condition ${groupIndex + 1}` : `Condition ${groupIndex + 1} · อาวุธอันดับ ${rowIndex + 1}`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user