1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-11-10 12:35:46 +03:00

🐛 Fix error with displaying null in expression

This commit is contained in:
Jan Oberhauser 2020-02-07 17:06:36 -08:00
parent 3ed27c6485
commit b41d40cc95

View File

@ -276,7 +276,7 @@ export default mixins(
returnValue = this.expressionValueComputed;
}
if (returnValue !== undefined && this.parameter.type === 'string') {
if (returnValue !== undefined && returnValue !== null && this.parameter.type === 'string') {
const rows = this.getArgument('rows');
if (rows === undefined || rows === 1) {
returnValue = returnValue.toString().replace(/\n/, '|');