Skip to content

Commit 39c4090

Browse files
committed
If text is an empty string, use it.
1 parent 3e3df88 commit 39c4090

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter-js-widgets/src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function reject(message, log) {
153153
* text: optional string
154154
*/
155155
function typeset(element, text) {
156-
if (text) {
156+
if (text !== void 0) {
157157
element.textContent = text;
158158
}
159159
if (window.MathJax) {

0 commit comments

Comments
 (0)