message: fix devconsole metrics page
diff: @@ -70,9 +70,6 @@ const MetricsQueryInput: React.FC = () => {
  if (text && text.localeCompare(q) !== 0) {
  setTitle(CUSTOM_QUERY);
  setIsPromQlDisabled(true);
  - if (query) {
  - removeQueryArgument('query0');
  - }
  }
  }, [query, queries, CUSTOM_QUERY]);
  @@ -105,7 +102,8 @@ const MetricsQueryInput: React.FC = () => {
  .catch(() => {});
  }, [namespace, safeFetch, dispatch]);
  - const onChange = (selectedValue: string) => {
  + const onChange = React.useCallback(
  + (selectedValue: string) => {
  setMetric(metricsQuery(t)[selectedValue]);
  setChangeKey(!changeKey);
  if (selectedValue && selectedValue === ADD_NEW_QUERY) {
  @@ -119,7 +117,9 @@ const MetricsQueryInput: React.FC = () => {
  if (query) {
  removeQueryArgument('query0');
  }
  - };
  + },
  + [CUSTOM_QUERY, changeKey, query, t],
  + );
  return (
  <>
  