瀏覽代碼

[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 2 月之前
父節點
當前提交
7f56ed26f7
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {