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:
Jaakko Husso
2025-08-01 09:32:05 +03:00
committed by GitHub
parent 22f505de69
commit d924d82ee2
9 changed files with 375 additions and 5 deletions

View File

@@ -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;