(cherry picked from commit d8d3a9c561)
This commit is contained in:
@@ -235,12 +235,12 @@ export function getAnnotationsFromData(
|
||||
* Opt out of using the default mapping functionality on frontend.
|
||||
*/
|
||||
export function shouldUseMappingUI(datasource: DataSourceApi): boolean {
|
||||
return datasource.type !== 'prometheus';
|
||||
return datasource.type !== 'prometheus' && datasource.type !== 'grafana-opensearch-datasource';
|
||||
}
|
||||
|
||||
/**
|
||||
* Use legacy runner. Used only as an escape hatch for easier transition to React based annotation editor.
|
||||
*/
|
||||
export function shouldUseLegacyRunner(datasource: DataSourceApi): boolean {
|
||||
return datasource.type === 'prometheus';
|
||||
return datasource.type === 'prometheus' || datasource.type === 'grafana-opensearch-datasource';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user