According to the bug description, this should be

    var isHidden = (evt.detail.panel !== 'main');