Skip to content

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

common: remove limit on resolve tags & notebook in note

Abdullah Atta8347dd5db72e
diff --git a/packages/common/src/utils/resolve-items.ts b/packages/common/src/utils/resolve-items.ts
index 5601ccd95..47f88a8f6 100644
--- a/packages/common/src/utils/resolve-items.ts
+++ b/packages/common/src/utils/resolve-items.ts
@@ -129,10 +129,10 @@ async function resolveNotes(ids: string[]) {
} else if (relation.toType === "reminder") {
data.reminders.push(relation.toId);
relationIds.reminders.add(relation.toId);
- } else if (relation.fromType === "notebook" && data.notebooks.length < 2) {
+ } else if (relation.fromType === "notebook") {
data.notebooks.push(relation.fromId);
relationIds.notebooks.add(relation.fromId);
- } else if (relation.fromType === "tag" && data.tags.length < 3) {
+ } else if (relation.fromType === "tag") {
data.tags.push(relation.fromId);
relationIds.tags.add(relation.fromId);
} else if (relation.fromType === "color" && !data.color) {