mirror of
https://github.com/apache/superset.git
synced 2026-04-22 17:45:21 +00:00
fix(viz-gallery): respect denylist in viz gallery (#22658)
This commit is contained in:
@@ -18,9 +18,10 @@
|
||||
*/
|
||||
|
||||
import { BootstrapData } from 'src/types/bootstrapTypes';
|
||||
import { DEFAULT_BOOTSTRAP_DATA } from 'src/constants';
|
||||
|
||||
export default function getBootstrapData(): BootstrapData {
|
||||
const appContainer = document.getElementById('app');
|
||||
const dataBootstrap = appContainer?.getAttribute('data-bootstrap');
|
||||
return dataBootstrap ? JSON.parse(dataBootstrap) : {};
|
||||
return dataBootstrap ? JSON.parse(dataBootstrap) : DEFAULT_BOOTSTRAP_DATA;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user