We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9ac280 commit 341eb4aCopy full SHA for 341eb4a
src/utils/validateUtil.ts
@@ -90,7 +90,7 @@ async function validateRule(
90
}
91
92
93
- if (!result.length && subRuleField) {
+ if (!result.length && subRuleField && Array.isArray(value) && value.length > 0) {
94
const subResults: string[][] = await Promise.all(
95
(value as StoreValue[]).map((subValue: StoreValue, i: number) =>
96
validateRule(`${name}.${i}`, subValue, subRuleField, options, messageVariables),
0 commit comments