Преглед на файлове

HUE-9256 [editor] Fix js exception in the file preview context popover

Johan Ahlen преди 5 години
родител
ревизия
247b708051

+ 2 - 2
desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.js

@@ -350,8 +350,8 @@ class AssistStorageEntry {
     type = type.replace(/abfs.*/i, 'abfs');
 
     huePubSub.publish(GET_KNOWN_CONFIG_EVENT, config => {
-      if (config && config.app_config && config.app_config.browsers) {
-        const source = config.app_config.browsers.interpreters.find(
+      if (config && config.app_config && config.app_config.browser) {
+        const source = config.app_config.browser.interpreters.find(
           interpreter => interpreter.type === type
         );
         if (source) {

+ 1 - 1
desktop/core/src/desktop/js/ko/components/assist/assistStorageEntry.test.js

@@ -63,7 +63,7 @@ describe('assistStorageEntry.js', () => {
       if (topic === GET_KNOWN_CONFIG_EVENT && cb) {
         cb({
           app_config: {
-            browsers: {
+            browser: {
               interpreters: [{ type: 'abfs' }]
             }
           }