Skip to content

Commit

Permalink
Update FileUploader.js
Browse files Browse the repository at this point in the history
fixes asset manager to auto add images to assets
  • Loading branch information
sonnylloyd committed Oct 4, 2017
1 parent 7c17280 commit d2318f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asset_manager/view/FileUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = Backbone.View.extend({
const em = this.config.em;
const config = this.config;
const target = this.target;
const json = typeof text === 'text' ? JSON.parse(text) : text;
const json = typeof text === 'string' ? JSON.parse(text) : text;
em && em.trigger('asset:upload:response', json);

if (config.autoAdd && target) {
Expand Down

0 comments on commit d2318f4

Please sign in to comment.