From 669d277a95908cec7b35e098b3252ae38db05df0 Mon Sep 17 00:00:00 2001 From: Kuuuube <61125188+Kuuuube@users.noreply.github.com> Date: Tue, 16 Apr 2024 12:25:59 -0400 Subject: Fix duplicate check not working across note types (#830) * Fix duplicate check not working across note types * Add invalidNoteId --------- Co-authored-by: James Maa --- ext/js/data/anki-util.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/js/data') 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; -- cgit v1.2.3