Fix potential crash in page_editor setting access
This commit is contained in:
parent
2d4d6d3242
commit
9c162d3f0d
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ var app = {
|
|||
, facebook_app_id: "<%= ENV['FACEBOOK_APP_ID'] %>"
|
||||
, map_provider: "<%= Settings.maps&.provider %>"
|
||||
, editor: "<%= Settings.page_editor.editor%>"
|
||||
<% if Settings.page_editor.editor == 'froala' and Settings.page_editor.editor_options.froala_key %>, froala_key: "<%= Settings.page_editor.editor_options.froala_key %>"<% end %>
|
||||
<% if Settings&.page_editor&.editor == 'froala' and Settings&.page_editor&.editor_options&.froala_key %>, froala_key: "<%= Settings.page_editor.editor_options.froala_key %>"<% end %>
|
||||
};
|
||||
|
||||
var ENV = {
|
||||
|
|
Loading…
Reference in a new issue