mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(AWS Bedrock Chat Model Node): Do not show issues for arbitrary model names (#17079)
This commit is contained in:
@@ -417,17 +417,19 @@ const getIssues = computed<string[]>(() => {
|
||||
['options', 'multiOptions'].includes(props.parameter.type) &&
|
||||
!remoteParameterOptionsLoading.value &&
|
||||
remoteParameterOptionsLoadingIssues.value === null &&
|
||||
parameterOptions.value
|
||||
parameterOptions.value &&
|
||||
(!isModelValueExpression.value || props.expressionEvaluated !== null)
|
||||
) {
|
||||
// Check if the value resolves to a valid option
|
||||
// Currently it only displays an error in the node itself in
|
||||
// Check if the value resolves to a valid option.
|
||||
// For expressions do not validate if there is no evaluated value.
|
||||
// Currently, it only displays an error in the node itself in
|
||||
// case the value is not valid. The workflow can still be executed
|
||||
// and the error is not displayed on the node in the workflow
|
||||
const validOptions = parameterOptions.value.map((options) => options.value);
|
||||
|
||||
let checkValues: string[] = [];
|
||||
|
||||
if (!shouldSkipParamValidation(displayValue.value)) {
|
||||
if (!shouldSkipParamValidation(props.parameter, displayValue.value)) {
|
||||
if (Array.isArray(displayValue.value)) {
|
||||
checkValues = checkValues.concat(displayValue.value);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user