• 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
..
annotation-share-dialog-test.js Loading commit data...
annotation-test.js Loading commit data...
annotation-thread-test.js Loading commit data...
excerpt-overflow-monitor-test.js Loading commit data...
excerpt-test.js Loading commit data...
form-input-test.coffee Loading commit data...
form-validate-test.coffee Loading commit data...
group-list-test.js Loading commit data...
h-tooltip-test.js Loading commit data...
markdown-test.js Loading commit data...
publish-annotation-btn-test.js Loading commit data...
search-status-bar-test.js Loading commit data...
share-dialog-test.js Loading commit data...
sidebar-tutorial-test.js Loading commit data...
simple-search-test.coffee Loading commit data...
sort-dropdown-test.js Loading commit data...
spinner-test.js Loading commit data...
status-button-test.coffee Loading commit data...
tag-editor-test.js Loading commit data...
timestamp-test.js Loading commit data...
util.js Loading commit data...
window-scroll-test.js Loading commit data...