• 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
h Loading commit data...
scripts Loading commit data...
.hound.yml Loading commit data...
.jscsrc Loading commit data...
.jshintignore Loading commit data...
.jshintrc Loading commit data...
gulpfile.js Loading commit data...
package.json Loading commit data...