Skip to content

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

fix: _topic cannot be found

thecodrr09d881ac9f47
diff --git a/packages/core/api/settings.js b/packages/core/api/settings.js
index 5f77f44cf..07a5f3ca5 100644
--- a/packages/core/api/settings.js
+++ b/packages/core/api/settings.js
@@ -39,7 +39,7 @@ class Settings {
} else if (pin.type === "topic") {
return this._db.notebooks
.notebook(pin.data.notebookId)
- .topics.topic(pin.data.topic)._topic;
+ .topics.topic(pin.data.id)._topic;
} else if (pin.type === "tag") {
return this._db.tags.tag(pin.data.id);
}