Failed to upgrade legacy queries e.replace is not a function

Hello Team,

I am trying to use the dashboard Limit/Request CPU /Memory | Grafana Labs in a grafana instance by using Openshift Prometheus as data source and am getting the below error .

Failed to upgrade legacy queries e.replace is not a function .

Templating

Failed to upgrade legacy queries e.replace is not a function

Templating [namespace]

Error updating options: e.replace is not a function

Templating [instance]

Error updating options: e.replace is not a function