Prometheus: add x icon to selected metrics (#64738)

fix: add `x` icon to selected metric
This commit is contained in:
Gareth Dawson 2023-03-14 15:09:06 +00:00 committed by GitHub
parent de901560d7
commit 7562a8e472
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -225,8 +225,9 @@ export const PromQueryBuilder = React.memo<Props>((props) => {
</Button>
{query.metric && (
<Tag
name={query.metric}
name={' ' + query.metric}
color="#3D71D9"
icon="times"
onClick={() => {
onChange({ ...query, metric: '' });
}}