• Nick Stenning's avatar
    Don't save null permissions/tags/text to drafts store · 40e2b6f3
    Nick Stenning authored
    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.
    40e2b6f3
annotation-test.coffee 32.9 KB