Fix crash on group render

This commit is contained in:
pythongosssss 2024-01-13 21:02:51 +00:00
parent df49a727ff
commit 9bddc9d94b
1 changed files with 1 additions and 0 deletions

View File

@ -843,6 +843,7 @@ export class GroupNodeHandler {
const r = onDrawForeground?.apply?.(this, arguments);
if (+app.runningNodeId === this.id && this.runningInternalNodeId !== null) {
const n = groupData.nodes[this.runningInternalNodeId];
if(!n) return;
const message = `Running ${n.title || n.type} (${this.runningInternalNodeId}/${groupData.nodes.length})`;
ctx.save();
ctx.font = "12px sans-serif";