The fix for #6 was to call mw.reset(). The better approach would be to use the CollectionOp operator. According to Anki forum user abdo (@abdnh) it is possible to pass a success handler to the success() method, see https://forums.ankiweb.net/t/update-deck-overview-after-import/38323/2.
The fix for #6 was to call
mw.reset()
. The better approach would be to use theCollectionOp
operator. According to Anki forum user abdo (@abdnh) it is possible to pass a success handler to thesuccess()
method, see https://forums.ankiweb.net/t/update-deck-overview-after-import/38323/2.