fix(editor): Fix typing $ in inline expression field reloading node parameters form (#6374)
* fix(editor): Fix typing `$` in inline expression field reloading node parameters form
* ⚡ Setting resource mapper empty field values to empty strings
This commit is contained in:
committed by
GitHub
parent
f61b776bea
commit
4c0d4ebd99
@@ -186,10 +186,10 @@ function getFieldDescription(field: ResourceMapperField): string {
|
||||
return '';
|
||||
}
|
||||
|
||||
function getParameterValue(parameterName: string) {
|
||||
function getParameterValue(parameterName: string): string | number | boolean | null {
|
||||
const fieldName = parseResourceMapperFieldName(parameterName);
|
||||
if (fieldName && props.paramValue.value) {
|
||||
return props.paramValue.value[fieldName];
|
||||
return props.paramValue.value[fieldName] || '';
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -19,14 +19,14 @@ import { fieldCannotBeDeleted, isResourceMapperValue, parseResourceMapperFieldNa
|
||||
import { i18n as locale } from '@/plugins/i18n';
|
||||
import { useNDVStore } from '@/stores/ndv.store';
|
||||
|
||||
interface Props {
|
||||
type Props = {
|
||||
parameter: INodeProperties;
|
||||
node: INode | null;
|
||||
path: string;
|
||||
inputSize: string;
|
||||
labelSize: string;
|
||||
dependentParametersValues: string | null;
|
||||
}
|
||||
dependentParametersValues?: string | null;
|
||||
};
|
||||
|
||||
const nodeTypesStore = useNodeTypesStore();
|
||||
const ndvStore = useNDVStore();
|
||||
|
||||
Reference in New Issue
Block a user