• Robert Knight's avatar
    Remove unnecessary array filter · f43663c6
    Robert Knight authored
    Remove a filter callback which always returned true. The first `!ann.id`
    condition is already part of the `store.unsavedAnnotations` logic. The
    second `isHighlight(...)` check did not work properly because the input
    was an annotation stub object with only `id` and `$tag` fields instead
    of the `Annotation` that `isHighlight` expects. For annotation stubs
    with no id, it always returned false.
    
    From a functional perspective the `isHighlight` check was also
    unnecessary. `store.unsavedAnnotations()` only returns IDs of
    annotations which have active drafts, but for highlights no draft is
    created.
    f43663c6
Name
Last commit
Last update
..
components Loading commit data...
config Loading commit data...
helpers Loading commit data...
services Loading commit data...
store Loading commit data...
test Loading commit data...
util Loading commit data...
cross-origin-rpc.js Loading commit data...
icons.js Loading commit data...
index.js Loading commit data...
markdown-commands.js Loading commit data...
media-embedder.js Loading commit data...
render-markdown.js Loading commit data...
search-client.js Loading commit data...
service-context.js Loading commit data...
websocket.js Loading commit data...