Makes IContextMenuItem.content optional because, I guess it is? Fixes #310
This commit is contained in:
@@ -60,7 +60,7 @@ function showQueueGroupNodesMenuIfGroupIsSelected(existingOptions: ContextMenuIt
|
||||
disabled: !outputNodes?.length,
|
||||
};
|
||||
|
||||
let idx = existingOptions.findIndex((o) => o?.content.startsWith("Queue Selected ")) + 1;
|
||||
let idx = existingOptions.findIndex((o) => o?.content?.startsWith("Queue Selected ")) + 1;
|
||||
idx = idx || existingOptions.findIndex((o) => o?.content === "Outputs") + 1;
|
||||
idx = idx || existingOptions.findIndex((o) => o?.content === "Align") + 1;
|
||||
idx = idx || 3;
|
||||
|
||||
Reference in New Issue
Block a user