mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Fix/cleanup.
This commit is contained in:
parent
333cc53797
commit
6e3b575fa5
3 changed files with 5 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue