Skip to content

Commit

Permalink
Update threads.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoenig committed Nov 9, 2024
1 parent 8e90e24 commit b8177e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/threads.js
Original file line number Diff line number Diff line change
Expand Up @@ -1753,7 +1753,9 @@ Process.prototype.doSetSlot = function(name, value) {
subslots = slot.inputs();
value.itemsArray().forEach((item, i) => {
if (subslots[i] instanceof InputSlotMorph) {
subslots[i].setContents(item.toString());
subslots[i].setContents(
isNil(item) ? '' : item.toString()
);
} else if (subslots[i] instanceof BooleanSlotMorph) {
subslots[i].setContents(item);
}
Expand Down

0 comments on commit b8177e4

Please sign in to comment.