Commit d6230c1c authored by snater's avatar snater
Browse files

Issue #3059762 by rromore: JS error when no files are available for insert

parent 6222f22a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -17,6 +17,10 @@
  Drupal.behaviors.insert = {};
  Drupal.behaviors.insert.attach = function(context) {

    if (!drupalSettings.insert) {
      return;
    }

    var editorInterface = undefined;

    $.each(Drupal.insert.editors.interfaces, function() {