Daniel J. Geiger 2 anni fa
parent
commit
01432813a6
1 ha cambiato i file con 6 aggiunte e 4 eliminazioni
  1. 6 4
      src/components/App.tsx

+ 6 - 4
src/components/App.tsx

@@ -6169,10 +6169,12 @@ class App extends React.Component<AppProps, AppState> {
   ): ContextMenuItems => {
     const options: ContextMenuItems = [];
     let addedCustom = false;
-    this.actionManager.getCustomActions({ data: { source } }).forEach((action) => {
-      addedCustom = true;
-      options.push(action);
-    });
+    this.actionManager
+      .getCustomActions({ data: { source } })
+      .forEach((action) => {
+        addedCustom = true;
+        options.push(action);
+      });
     if (type === "custom") {
       return options;
     }