Skip to content

Commit

Permalink
Prevent Undefined api.Shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
parsaatef committed Sep 8, 2017
1 parent 599bc00 commit 2071d8c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion editor/assets/js/frontend-editor/plugins/select.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@

if(api.appPreview.mode == "on")
return false;


if( _.isUndefined( api.shortcodes ) )
return false;

var self = this;

forceOpen = _.isUndefined( forceOpen ) ? false : forceOpen;
Expand Down

0 comments on commit 2071d8c

Please sign in to comment.