Uploaded image for project: 'Hue'
  1. Hue
  2. HUE-3858

[editor] Js error on very first opening of the editor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 3.9.0
    • Fix Version/s: 3.10.0
    • Component/s: app.editor
    • Labels:
      None

      Description

      Incognito mode, open Hive from menu:

      knockout.min.js:16 Uncaught TypeError: Unable to process binding "sortable: function (){return {
                template:'snippet',data:snippets,isEnabled:true,options:{'handle':'.move-widget','axis':'y','o…older':'snippet-move-placeholder','greedy':true,'stop':function(event,ui){
                    var $element = $(event.target);
                    $element.find('.snippet-body').slideDown('fast',function(){ $('.right-panel').scrollTop(lastWindowScrollPosition);});},'helper':function(event){
                    lastWindowScrollPosition = $('.right-panel').scrollTop();
                    var $element = $(event.target);
                    $element.find('.snippet-body').slideUp('fast',function(){
                      $('.sortable-snippets').sortable('refreshPositions')});
                    var _par = $('<div>')
                      .css('overflow','hidden')
                      .addClass('card-widget snippet-move-helper')
                      .width($element.parents('.snippet').width());
                    $('<h2>')
                      .addClass('card-heading')
                      .html($element.parents('h2').html())
                      .appendTo(_par)
                      .find('.hover-actions, .snippet-actions')
                      .removeClass('hover-actions')
                      .removeClass('snippet-actions');
                    $('<pre>')
                      .addClass('dragging-pre muted')
                      .html(ko.dataFor($element.parents('.card-widget')[0]).statement())
                      .appendTo(_par);
                    _par.css('height','100px');
                    return _par;}},dragged:function(widget){
                  $('.snippet-body').slideDown('fast',function(){ $('.right-panel').scrollTop(lastWindowScrollPosition);});}} }"
      Message: Unable to process binding "template: function (){return { if:['text','markdown'].indexOf(type()) == -1,name:'snippet-execution-controls'} }"
      Message: Unable to process binding "if: function (){return isSqlDialect }"
      Message: Unable to process binding "if: function (){return formatEnabled }"
      Message: Cannot read property 'length' of null
      

        Attachments

          Activity

            People

            • Assignee:
              enricoberti Enrico Berti
              Reporter:
              romain Romain Rigaux
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: