• Robert Knight's avatar
    Initialize `tags` and `text` fields to expected types for new annotations (#3460) · 2e73defa
    Robert Knight authored
    Several places in the <annotation> component assumed that the `tags`
    field was an array, as did <tag-editor>. The `tags` and `text` fields
    are always set by the server for annotations received from the API but
    are not set by Annotator when creating new annotations in the page.
    
    It would be better to initialize all of the required fields for
    annotations when they are loaded into the app rather than in the
    <annotation> directive. For now however keep the initialization of all
    required fields in the same place.
    
    This fixes an error when saving new annotations.
    2e73defa
Name
Last commit
Last update
..
static Loading commit data...
templates/client Loading commit data...