Browse Source

[ui-editor] fixes loading computes in saved query page (#4079)

Ram Prasad Agarwal 8 months ago
parent
commit
3989866376
1 changed files with 4 additions and 1 deletions
  1. 4 1
      desktop/core/src/desktop/js/apps/notebook/snippet.js

+ 4 - 1
desktop/core/src/desktop/js/apps/notebook/snippet.js

@@ -200,7 +200,10 @@ class Snippet {
 
 
     const updateConnector = id => {
     const updateConnector = id => {
       if (id) {
       if (id) {
-        self.connector(findEditorConnector(connector => connector.id === id));
+        // when computes are enabled, hive becomes hive-compute.
+        self.connector(
+          findEditorConnector(connector => id === connector.id || id === `${connector.id}-compute`)
+        );
       }
       }
     };
     };