mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(Notion Node): Fix is_empty query on formula fields (#8397)
This commit is contained in:
@@ -559,12 +559,16 @@ export function mapFilters(filtersList: IDataObject[], timezone: string) {
|
||||
}
|
||||
|
||||
if (value.type === 'formula') {
|
||||
const vpropertyName = value[`${camelCase(value.returnType as string)}Value`];
|
||||
if (['is_empty', 'is_not_empty'].includes(value.condition as string)) {
|
||||
key = value.returnType;
|
||||
} else {
|
||||
const vpropertyName = value[`${camelCase(value.returnType as string)}Value`];
|
||||
|
||||
return Object.assign(obj, {
|
||||
['property']: getNameAndType(value.key as string).name,
|
||||
[key]: { [value.returnType]: { [`${value.condition}`]: vpropertyName } },
|
||||
});
|
||||
return Object.assign(obj, {
|
||||
['property']: getNameAndType(value.key as string).name,
|
||||
[key]: { [value.returnType]: { [`${value.condition}`]: vpropertyName } },
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
return Object.assign(obj, {
|
||||
|
||||
Reference in New Issue
Block a user