Skip to content

Commit

Permalink
Do not autofill content if already defined
Browse files Browse the repository at this point in the history
This prevents `@content` annotation value to be replaced with an empty
string if the autofill is triggered.

Refs: #383
  • Loading branch information
valeriangalliat committed Mar 16, 2015
1 parent 84bd83e commit 399bbd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/annotation/annotations/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function content() {
},

autofill(item) {
if (item.context.code.indexOf('@content') > -1) {
if (!item.content && item.context.code.indexOf('@content') > -1) {
return '';
}
},
Expand Down

0 comments on commit 399bbd0

Please sign in to comment.