mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-09-13 12:29:58 +02:00
Fix/cleanup.
This commit is contained in:
@@ -6169,11 +6169,9 @@ class App extends React.Component<AppProps, AppState> {
|
||||
): ContextMenuItems => {
|
||||
const options: ContextMenuItems = [];
|
||||
let addedCustom = false;
|
||||
this.actionManager.getCustomActions().forEach((action) => {
|
||||
if (this.actionManager.isActionEnabled(action, { data: { source } })) {
|
||||
addedCustom = true;
|
||||
options.push(action);
|
||||
}
|
||||
this.actionManager.getCustomActions({ data: { source } }).forEach((action) => {
|
||||
addedCustom = true;
|
||||
options.push(action);
|
||||
});
|
||||
if (type === "custom") {
|
||||
return options;
|
||||
|
Reference in New Issue
Block a user