Apply attribute sanitation to GeomapPanel
This commit is contained in:
@@ -24,6 +24,7 @@ import {
|
||||
DataHoverEvent,
|
||||
DataFrame,
|
||||
FrameGeometrySourceMode,
|
||||
textUtil,
|
||||
} from '@grafana/data';
|
||||
import { config } from '@grafana/runtime';
|
||||
import { PanelContext, PanelContextRoot, stylesFactory } from '@grafana/ui';
|
||||
@@ -490,6 +491,10 @@ export class GeomapPanel extends Component<Props, State> {
|
||||
return Promise.reject('unknown layer: ' + options.type);
|
||||
}
|
||||
|
||||
if (options.config?.attribution) {
|
||||
options.config.attribution = textUtil.sanitizeTextPanelContent(options.config.attribution);
|
||||
}
|
||||
|
||||
const handler = await item.create(map, options, config.theme2);
|
||||
const layer = handler.init();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user