Skip to content

Commit f3899e2

Browse files
authored
fix(blocks): boolean variable block wrong shape for zelos (#7335)
* fix(blocks): boolean variable block wrong shape for zelos * fixup! fix(blocks): boolean variable block wrong shape for zelos
1 parent 8893107 commit f3899e2

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

core/rendered_connection.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,22 @@ export class RenderedConnection extends Connection {
625625
this.sourceBlock_.bumpNeighbours();
626626
}
627627
}
628+
629+
/**
630+
* Change a connection's compatibility.
631+
* Rerender blocks as needed.
632+
*
633+
* @param check Compatible value type or list of value types. Null if all
634+
* types are compatible.
635+
* @returns The connection being modified (to allow chaining).
636+
*/
637+
override setCheck(check: string | string[] | null): RenderedConnection {
638+
super.setCheck(check);
639+
if (this.sourceBlock_.rendered) {
640+
this.sourceBlock_.queueRender();
641+
}
642+
return this;
643+
}
628644
}
629645

630646
export namespace RenderedConnection {

0 commit comments

Comments
 (0)