Skip to content

Commit 3a8a00e

Browse files
Merge branch 'hotfix/content-autofill'
2 parents 36709fc + 399bbd0 commit 3a8a00e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"url": "https://twitter.com/pascalduez"
2222
}
2323
],
24-
"version": "2.1.4",
24+
"version": "2.1.5",
2525
"license": {
2626
"type": "MIT",
2727
"url": "http://opensource.org/licenses/MIT"

src/annotation/annotations/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function content() {
77
},
88

99
autofill(item) {
10-
if (item.context.code.indexOf('@content') > -1) {
10+
if (!item.content && item.context.code.indexOf('@content') > -1) {
1111
return '';
1212
}
1313
},

0 commit comments

Comments
 (0)