Procházet zdrojové kódy

[ui-core] Dashboard Js Issue. Javascript error isGridster (#4272)

The dashboard was using the processHeadersSecure method which loads scripts asynchronously after inserting HTML into the DOM but dashboard was not migrated yet. As a immediate fix moving it to processHeaders.
Tabraiz před 2 měsíci
rodič
revize
7f56ed26f7
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      desktop/core/src/desktop/js/onePageViewModel.js

+ 1 - 1
desktop/core/src/desktop/js/onePageViewModel.js

@@ -465,7 +465,7 @@ class OnePageViewModel {
               self.extraEmbeddableURLParams('');
               const currentPath = window.location.pathname; // Retrieve the current path from the window location
               const basePath = currentPath.split('=')[0];
-              const inlineScriptsUrls = ['oozie', 'beeswax', 'jobsub'].some(segment =>
+              const inlineScriptsUrls = ['oozie', 'beeswax', 'jobsub', 'dashboard'].some(segment =>
                 basePath.includes(segment)
               );
               if (inlineScriptsUrls) {