fix(If Node): Update copy for type conversion parameter (#10769)

This commit is contained in:
Elias Meire 2024-09-11 14:12:33 +02:00 committed by GitHub
parent 6fa1919ca8
commit ee5fbc543c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 15 additions and 5 deletions

View file

@ -185,10 +185,19 @@ const addTargetBlank = (html: string) =>
}
:root .tooltipPopper {
line-height: var(--font-line-height-compact);
max-width: 400px;
li {
margin-left: var(--spacing-s);
}
code {
color: var(--color-text-dark);
font-size: var(--font-size-3xs);
background: var(--color-background-medium);
padding: var(--spacing-5xs);
border-radius: var(--border-radius-base);
}
}
</style>

View file

@ -4,4 +4,4 @@ export const NODE_RAN_MULTIPLE_TIMES_WARNING =
export const LOCALHOST = '127.0.0.1';
export const ENABLE_LESS_STRICT_TYPE_VALIDATION =
"Try changing the type of comparison. Alternatively you can enable 'Convert Value Types'.";
"Try changing the type of comparison. Alternatively you can enable 'Convert types where required'.";

View file

@ -34,8 +34,9 @@ export const returnAllOrLimit: INodeProperties[] = [
];
export const looseTypeValidationProperty: INodeProperties = {
displayName: 'Convert Value Types',
description: 'Whether to try casting value types based on the selected operator',
displayName: 'Convert types where required',
description:
'If the type of an expression doesn\'t match the type of the comparison, n8n will try to cast the expression to the required type. E.g. for booleans <code>"false"</code> or <code>0</code> will be cast to <code>false</code>',
name: 'looseTypeValidation',
type: 'boolean',
default: true,

View file

@ -109,7 +109,7 @@ function parseFilterConditionValues(
const getTypeDescription = (isStrict: boolean) => {
if (isStrict)
return "Try changing the type of comparison. Alternatively you can enable 'Convert Value Types'.";
return "Try changing the type of comparison. Alternatively you can enable 'Convert types where required'.";
return 'Try changing the type of the comparison.';
};
@ -135,7 +135,7 @@ function parseFilterConditionValues(
return `
<p>Try either:</p>
<ol>
<li>Enabling 'Convert Value Types'</li>
<li>Enabling 'Convert types where required'</li>
<li>Converting the ${valuePosition} field to ${expectedType}${suggestFunction}</li>
</ol>
`;