Skip to content

Commit 624ffac

Browse files
committed
Text needs to be updated explicitly meanwhile apparently
otherwise gets lost: stickers without text after update
1 parent afbb04e commit 624ffac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PascalsTriangle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ generateRowsFromTo(9, 32, false);
6666
for (let i = 0; i < stickers.length; i++) {
6767
let sticker = stickers[i];
6868
if (sticker.val % 2 === 1) {
69-
miro.board.widgets.update({id: sticker.id, style: {stickerBackgroundColor: blue}, x: sticker.x, y: - sticker.y })
69+
miro.board.widgets.update({id: sticker.id, text: sticker.val.toString(), style: {stickerBackgroundColor: blue}, x: sticker.x, y: - sticker.y })
7070
}
7171
}
7272

0 commit comments

Comments
 (0)