Closed rajatarora closed 2 years ago
Fixed a small bug due to which createModels API call for spaced cards was returning an error:
createModels
{ "result": null, "error": "Card template 1 in notetype 'Obsidian-spaced' has a problem.<br>See the preview for more information." }
The issue is with the Source field, which was being inserted in the template for spaced cards even if Source Support is not enabled in settings.
Source
Replaced ${sourceField} with ${sourceFieldContent} in anki.ts where the templates for spaced cards are defined. Tested, works fine for me :)
${sourceField}
${sourceFieldContent}
anki.ts
Fixed a small bug due to which
createModels
API call for spaced cards was returning an error:The issue is with the
Source
field, which was being inserted in the template for spaced cards even if Source Support is not enabled in settings.Replaced
${sourceField}
with${sourceFieldContent}
inanki.ts
where the templates for spaced cards are defined. Tested, works fine for me :)