• Sean Hammond's avatar
    Don't save null permissions/tags/text to drafts store · cbc3b3e6
    Sean Hammond authored
    This is a translation of commit 363134d28cb7ff8d2313278e1b4b6c09b5bf9bed
    from CoffeeScript to JavaScript. Original commit message from
    363134d28cb7ff8d2313278e1b4b6c09b5bf9bed:
    
    When saving a draft to the drafts store, don't save changes for fields
    which aren't actually set. This prevents us from accidentally later
    restoring `null` to one of these fields.
    
    Fixes an issue where creating an annotation when logged-out would result
    in a null permissions field.
    cbc3b3e6
Name
Last commit
Last update
..
annotation-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...
publish-annotation-btn-test.js Loading commit data...
search-status-bar-test.js Loading commit data...
share-dialog-test.coffee 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...
thread-test.coffee Loading commit data...
util.js Loading commit data...
window-scroll-test.js Loading commit data...