• Robert Knight's avatar
    Initialize `target` property of new page notes to a single-item array · fa99d0bd
    Robert Knight authored
    Annotations received from the API always have a non-empty `target` array, as do
    annotations and replies created locally that have not yet been saved. Unsaved
    Page Notes were an exception. This led to an error [1] when hovering a new
    unsaved page note in a VitalSource book, due to code not handling an empty
    `target` array.  Resolve this by initializing the `target` field of new page
    notes in the same way as replies and annotations (minus the `selector` property
    that annotations have).
    
    [1] https://hypothesis.sentry.io/issues/3745569320/
    fa99d0bd
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.ts Loading commit data...
index.tsx Loading commit data...
markdown-commands.ts Loading commit data...
media-embedder.ts Loading commit data...
render-markdown.ts Loading commit data...
search-client.ts Loading commit data...
service-context.tsx Loading commit data...
websocket.ts Loading commit data...