mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
fix: Cast boolean values in filter parameter (#9260)
This commit is contained in:
@@ -32,9 +32,15 @@ function parseSingleFilterValue(
|
||||
type: FilterOperatorType,
|
||||
strict = false,
|
||||
): ValidationResult {
|
||||
return type === 'any' || value === null || value === undefined
|
||||
? ({ valid: true, newValue: value } as ValidationResult)
|
||||
: validateFieldType('filter', value, type, { strict, parseStrings: true });
|
||||
if (type === 'any' || value === null || value === undefined) {
|
||||
return { valid: true, newValue: value } as ValidationResult;
|
||||
}
|
||||
|
||||
if (type === 'boolean' && !strict) {
|
||||
return { valid: true, newValue: Boolean(value) };
|
||||
}
|
||||
|
||||
return validateFieldType('filter', value, type, { strict, parseStrings: true });
|
||||
}
|
||||
|
||||
const withIndefiniteArticle = (noun: string): string => {
|
||||
|
||||
Reference in New Issue
Block a user