Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: cancel button in topic dialog causing crash

thecodrr371e7c91e5b0
diff --git a/apps/web/src/components/dialogs/topicdialog.js b/apps/web/src/components/dialogs/topicdialog.js
index c88cd5ec3..bb544dd44 100644
--- a/apps/web/src/components/dialogs/topicdialog.js
+++ b/apps/web/src/components/dialogs/topicdialog.js
@@ -43,7 +43,7 @@ export function showTopicDialog(notebook) {
title={"Create a Topic"}
subtitle={"You can create as many topics as you want."}
icon={Icon.Topic}
- onNo={() => {
+ onClose={() => {
perform(false);
}}
onYes={async (topic) => {