aboutsummaryrefslogtreecommitdiff
path: root/ext/js/data
diff options
context:
space:
mode:
authorKuuuube <61125188+Kuuuube@users.noreply.github.com>2024-04-16 12:25:59 -0400
committerGitHub <noreply@github.com>2024-04-16 16:25:59 +0000
commit669d277a95908cec7b35e098b3252ae38db05df0 (patch)
tree54dffc4d9c566b941eea67ad8a070d967ed3c717 /ext/js/data
parent6e1cb327226d1f9dfc71ebff8063834a18db9dff (diff)
Fix duplicate check not working across note types (#830)24.4.16.0
* Fix duplicate check not working across note types * Add invalidNoteId --------- Co-authored-by: James Maa <jmaa@berkeley.edu>
Diffstat (limited to 'ext/js/data')
-rw-r--r--ext/js/data/anki-util.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/js/data/anki-util.js b/ext/js/data/anki-util.js
index eea3fb8b..a063980f 100644
--- a/ext/js/data/anki-util.js
+++ b/ext/js/data/anki-util.js
@@ -82,3 +82,5 @@ export function isNoteDataValid(note) {
Object.entries(fields).length > 0
);
}
+
+export const invalidNoteId = -1;