• Robert Knight's avatar
    Fix `deleteIfNewAndEmpty()` being called after annotation was destroyed · 8db47b83
    Robert Knight authored
    The correct fix would be to remove new annotations with an empty draft
    in the reducer function that handles new annotations being created. That
    is not currently possible because drafts are not stored in the Redux
    store. Therefore this commit just manually de-registers the listener
    when <annotation> goes out of scope.
    8db47b83
annotation-test.js 33.6 KB