Skip to content

Commit 0d51ea7

Browse files
committed
Merge pull request #13 from mar-kolya/master
Fixed an empty image issue and an image list issue
2 parents 4c8b620 + ba4aa51 commit 0d51ea7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

plugins/image/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module.exports = {
2020
return callback([]);
2121
}
2222

23+
if (!parsed_data) return callback(null);
2324
var file_id = parsed_data.file_id;
2425

2526
models.files.find({ where: { id: file_id } })

plugins/image_list/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
(function() {
1212

1313
try {
14-
var files = {{ item[field.name]|json_encode|raw }};
14+
var files = {{ item.data[field.name]|json_encode|raw }};
1515
} catch(e) {
1616
return;
1717
}

0 commit comments

Comments
 (0)