fix: _topic cannot be found

This commit is contained in:
thecodrr
2020-11-25 23:51:15 +05:00
parent cf98fe4945
commit 09d881ac9f

View File

@@ -39,7 +39,7 @@ class Settings {
} else if (pin.type === "topic") { } else if (pin.type === "topic") {
return this._db.notebooks return this._db.notebooks
.notebook(pin.data.notebookId) .notebook(pin.data.notebookId)
.topics.topic(pin.data.topic)._topic; .topics.topic(pin.data.id)._topic;
} else if (pin.type === "tag") { } else if (pin.type === "tag") {
return this._db.tags.tag(pin.data.id); return this._db.tags.tag(pin.data.id);
} }