mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
fix(Google Sheets Node): Make it possible to set cell values empty on updates (#17224)
Co-authored-by: Milorad FIlipović <milorad@n8n.io> Co-authored-by: Nikhil Kuriakose <nikhil.kuriakose@n8n.io>
This commit is contained in:
@@ -607,6 +607,7 @@ const onCalloutDismiss = async (parameter: INodeProperties) => {
|
||||
:path="getPath(parameter.name)"
|
||||
:dependent-parameters-values="getDependentParametersValues(parameter)"
|
||||
:is-read-only="isReadOnly"
|
||||
:allow-empty-strings="parameter.typeOptions?.resourceMapper?.allowEmptyValues"
|
||||
input-size="small"
|
||||
label-size="small"
|
||||
@value-changed="valueChanged"
|
||||
|
||||
@@ -40,6 +40,7 @@ type Props = {
|
||||
teleported?: boolean;
|
||||
dependentParametersValues?: string | null;
|
||||
isReadOnly?: boolean;
|
||||
allowEmptyStrings?: boolean;
|
||||
};
|
||||
|
||||
const nodeTypesStore = useNodeTypesStore();
|
||||
@@ -50,6 +51,7 @@ const props = withDefaults(defineProps<Props>(), {
|
||||
teleported: true,
|
||||
dependentParametersValues: null,
|
||||
isReadOnly: false,
|
||||
allowEmptyStrings: false,
|
||||
});
|
||||
|
||||
const { onDocumentVisible } = useDocumentVisibility();
|
||||
@@ -436,8 +438,8 @@ function fieldValueChanged(updateInfo: IUpdateInformation): void {
|
||||
let newValue = null;
|
||||
if (
|
||||
updateInfo.value !== undefined &&
|
||||
updateInfo.value !== '' &&
|
||||
updateInfo.value !== null &&
|
||||
(props.allowEmptyStrings || updateInfo.value !== '') &&
|
||||
isResourceMapperValue(updateInfo.value)
|
||||
) {
|
||||
newValue = updateInfo.value;
|
||||
|
||||
Reference in New Issue
Block a user