Patch - Issue #12

This commit is contained in:
Noah Boos 2025-06-15 12:49:22 +02:00
parent 44744da1d9
commit 1fb2078cef

View file

@ -137,8 +137,10 @@ export class AddNoteFromMetadataModal extends Modal {
"ankiIntegrationModal__container--gap-16px"
])
for (let i = 0; i < yaml["cardTags"].length; i++) {
AddTagInputGroup(tagsBody, yaml["cardTags"][i]);
if (yaml["cardTags"] != null) {
for (let i = 0; i < yaml["cardTags"].length; i++) {
AddTagInputGroup(tagsBody, yaml["cardTags"][i]);
}
}
/**
* @description addTagFieldButton's onClick() event listener used to add a tag input group in tagsBody.