mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
🐛 Fix error with displaying null in expression
This commit is contained in:
parent
3ed27c6485
commit
b41d40cc95
|
@ -276,7 +276,7 @@ export default mixins(
|
||||||
returnValue = this.expressionValueComputed;
|
returnValue = this.expressionValueComputed;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (returnValue !== undefined && this.parameter.type === 'string') {
|
if (returnValue !== undefined && returnValue !== null && this.parameter.type === 'string') {
|
||||||
const rows = this.getArgument('rows');
|
const rows = this.getArgument('rows');
|
||||||
if (rows === undefined || rows === 1) {
|
if (rows === undefined || rows === 1) {
|
||||||
returnValue = returnValue.toString().replace(/\n/, '|');
|
returnValue = returnValue.toString().replace(/\n/, '|');
|
||||||
|
|
Loading…
Reference in a new issue