You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by mi...@apache.org on 2024/01/09 12:31:41 UTC

(superset) 04/13: fix(embed): an error occurred while rendering the visualization: error: Item with key ... is not registered. (#26398)

This is an automated email from the ASF dual-hosted git repository.

michaelsmolina pushed a commit to branch 3.1
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 79e7f2732d62bb6d563eba3aadfb97a2c54baee6
Author: Boris Strelchik <b....@gmail.com>
AuthorDate: Wed Jan 3 18:15:28 2024 +0000

    fix(embed):  an error occurred while rendering the visualization: error: Item with key ... is not registered. (#26398)
    
    (cherry picked from commit 9ffcd6410eb39c2cc911707e1b264df4a1b74a8c)
---
 superset-frontend/src/embedded/index.tsx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/superset-frontend/src/embedded/index.tsx b/superset-frontend/src/embedded/index.tsx
index 50c026fba8..27c80e9279 100644
--- a/superset-frontend/src/embedded/index.tsx
+++ b/superset-frontend/src/embedded/index.tsx
@@ -23,6 +23,7 @@ import { makeApi, t, logging } from '@superset-ui/core';
 import Switchboard from '@superset-ui/switchboard';
 import getBootstrapData from 'src/utils/getBootstrapData';
 import setupClient from 'src/setup/setupClient';
+import setupPlugins from 'src/setup/setupPlugins';
 import { RootContextProviders } from 'src/views/RootContextProviders';
 import { store, USER_LOADED } from 'src/views/store';
 import ErrorBoundary from 'src/components/ErrorBoundary';
@@ -32,6 +33,8 @@ import ToastContainer from 'src/components/MessageToasts/ToastContainer';
 import { UserWithPermissionsAndRoles } from 'src/types/bootstrapTypes';
 import { embeddedApi } from './api';
 
+setupPlugins();
+
 const debugMode = process.env.WEBPACK_MODE === 'development';
 const bootstrapData = getBootstrapData();