Skip to content

Filters are not hiding in embedding. #33178

Open
@devyash786

Description

@devyash786

Bug description

(async () => {
  try {
    await embedDashboard({
      id: DASHBOARD_ID,
      supersetDomain: SUPERSET_URL,
      mountPoint: document.getElementById("dashboard") as HTMLElement,
      fetchGuestToken,
      dashboardUiConfig: {
        hideTitle: false,
        hideTab: true,
        hideChartControls: false,
        filters: { visible: false, expanded: false },
        urlParams: { native_filter_key: "" },
      },
      iframeSandboxExtras: ["allow-same-origin", "allow-scripts", "allow-popups"],
    });
  } catch (err) {
    const errorMessage = err instanceof Error ? err.message : "Unknown error occurred";
    setError(errorMessage);
    ToastService.addMessage(`Error embedding dashboard: ${errorMessage}`, { variant: "error" });
  }
})();

}, [token]);

Screenshots/recordings

No response

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions