chore(editor): Clean up warnings on the browser's console (#17307)

This commit is contained in:
Suguru Inoue
2025-07-24 15:03:39 +02:00
committed by GitHub
parent c044bc36e9
commit 733ada8999
12 changed files with 59 additions and 49 deletions

View File

@@ -234,12 +234,12 @@ const modelValueResourceLocator = computed<INodeParameterResourceLocator>(() =>
return props.modelValue as INodeParameterResourceLocator;
});
const modelValueExpressionEdit = computed<string>(() => {
const modelValueExpressionEdit = computed<NodeParameterValueType>(() => {
return isResourceLocatorParameter.value && typeof props.modelValue !== 'string'
? props.modelValue
? ((props.modelValue as INodeParameterResourceLocator).value as string)
? (props.modelValue as INodeParameterResourceLocator).value
: ''
: (props.modelValue as string);
: props.modelValue;
});
const editorRows = computed(() => getTypeOption<number>('rows'));
@@ -1175,6 +1175,7 @@ onUpdated(async () => {
@keydown.stop
>
<ExpressionEditModal
v-if="typeof modelValueExpressionEdit === 'string'"
:dialog-visible="expressionEditDialogVisible"
:model-value="modelValueExpressionEdit"
:parameter="parameter"