Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export is mistakenly reported as successful when it's not #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

belgio99
Copy link

In some cases, the Anki export is mistakenly reported as successful, when nothing is actually imported into Anki. Even if the documentation says Anki Connect should return null, in fact it's returning [null] (Array with a single value: null). The nullish operator doesn't distinguish and incorrectly says that 1 card was exported to Anki (when it's not).

The checks I added fix this subtle bug, and report the user if the export was unsuccessful.

Btw thank you for the plugin: it really is a timesaver!

@belgio99 belgio99 changed the title Export is mistakenly reported as "successful" when it's not Export is mistakenly reported as successful when it's not Jan 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant