🐛 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/, '|');