Explorar o código

HUE-8768 [editor] Fix snippet JS exception in notebook 2

Johan Ahlen %!s(int64=6) %!d(string=hai) anos
pai
achega
5f92f4bb18
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/core/src/desktop/js/apps/notebook2/snippet.js

+ 1 - 1
desktop/core/src/desktop/js/apps/notebook2/snippet.js

@@ -191,7 +191,7 @@ export default class Snippet {
         this.type() === this.impala ||
         this.parentVm.availableLanguages.some(
           language =>
-            language.type === self.type() &&
+            language.type === this.type() &&
             (language.interface == 'oozie' || language.interface == 'sqlalchemy')
         )
     );