Fix crash on group render
This commit is contained in:
parent
df49a727ff
commit
9bddc9d94b
|
@ -843,6 +843,7 @@ export class GroupNodeHandler {
|
||||||
const r = onDrawForeground?.apply?.(this, arguments);
|
const r = onDrawForeground?.apply?.(this, arguments);
|
||||||
if (+app.runningNodeId === this.id && this.runningInternalNodeId !== null) {
|
if (+app.runningNodeId === this.id && this.runningInternalNodeId !== null) {
|
||||||
const n = groupData.nodes[this.runningInternalNodeId];
|
const n = groupData.nodes[this.runningInternalNodeId];
|
||||||
|
if(!n) return;
|
||||||
const message = `Running ${n.title || n.type} (${this.runningInternalNodeId}/${groupData.nodes.length})`;
|
const message = `Running ${n.title || n.type} (${this.runningInternalNodeId}/${groupData.nodes.length})`;
|
||||||
ctx.save();
|
ctx.save();
|
||||||
ctx.font = "12px sans-serif";
|
ctx.font = "12px sans-serif";
|
||||||
|
|
Loading…
Reference in New Issue