Fix typo: notetypeId → noteId (#2615)

IOEditingMode interface expects noteId
This commit is contained in:
Aristotelis 2023-08-21 07:00:05 +02:00 committed by GitHub
parent bc295b41c1
commit 538ea31387
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1203,7 +1203,7 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too
options = {"html": html, "mode": mode} options = {"html": html, "mode": mode}
self.web.eval(f"setupMaskEditor({json.dumps(options)})") self.web.eval(f"setupMaskEditor({json.dumps(options)})")
else: else:
mode = {"kind": "edit", "notetypeId": self.note.id} mode = {"kind": "edit", "noteId": self.note.id}
options = {"html": html, "mode": mode} options = {"html": html, "mode": mode}
self.web.eval(f"resetIOImage({json.dumps(file)})") self.web.eval(f"resetIOImage({json.dumps(file)})")
self.web.eval(f"setImageField({json.dumps(html)})") self.web.eval(f"setImageField({json.dumps(html)})")