AliIbnBotir commented on code in PR #45275:
URL: https://github.com/apache/superset/pull/45275#discussion_r4279327222
##########
superset-frontend/src/components/Chart/ChartRenderer.tsx:
##########
@@ -239,6 +242,17 @@ function ChartRendererComponent({
[source, suppressContextMenu],
);
+ // Tells plugins where they render, e.g. to allow editing only in Explore.
+ // Standalone Explore serves embedded charts and report screenshots.
+ const appSection = useMemo(() => {
+ if (source === ChartSource.Dashboard) {
+ return AppSection.Dashboard;
+ }
+ return getUrlParam(URL_PARAMS.standalone)
+ ? AppSection.Embedded
+ : AppSection.Explore;
Review Comment:
Applied in 7a78f1e, plus a ?standalone=2 test. Thanks!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]