From 625a99e7f05a94d4d58b09cec074bf3ddc5a753d Mon Sep 17 00:00:00 2001 From: jmoenig Date: Fri, 19 Jun 2020 18:34:45 +0200 Subject: [PATCH] tweaked filling in default values --- src/blocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blocks.js b/src/blocks.js index e28c938c..9e7dde7f 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -3234,7 +3234,7 @@ BlockMorph.prototype.setSelector = function (aSelector, inputOffset = 0) { slots[0].defaults = this.defaults; } else { for (i = 0; i < this.defaults.length; i += 1) { - if (this.defaults[i] !== null) { + if (this.defaults[i] !== null && slots[i].setContents) { slots[i].setContents(this.defaults[i]); } }