maths: fix formulas outputing unwrapped null value
This commit is contained in:
parent
cb54fe0f9c
commit
88648c5be6
1 changed files with 1 additions and 1 deletions
|
|
@ -322,7 +322,7 @@ class Widget extends EventEmitter {
|
|||
|
||||
if (r instanceof math.type.ResultSet && !r.entries.length) {
|
||||
r = ''
|
||||
} else if (r.valueOf) {
|
||||
} else if (typeof r === 'object' && r !== null && r.valueOf) {
|
||||
r = r.valueOf()
|
||||
if (Array.isArray(r) && r.length == 1) r = r[0]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue