Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/dialogs): unnecessary listeners on modal render

Elian Doranc0d3027e654e
diff --git a/apps/client/src/widgets/react/Modal.tsx b/apps/client/src/widgets/react/Modal.tsx
index 1f020b56bf..96f41076f6 100644
--- a/apps/client/src/widgets/react/Modal.tsx
+++ b/apps/client/src/widgets/react/Modal.tsx
@@ -71,7 +71,7 @@ export default function Modal({ children, className, size, title, header, footer
modalElement.removeEventListener("hidden.bs.modal", onHidden);
}
};
- });
+ }, [ ]);
}
const dialogStyle: CSSProperties = {};