Skip to content

Commit

Permalink
fixed deleting metric with forbidden simbols (#428)
Browse files Browse the repository at this point in the history
Co-authored-by: Eduard Zaidler <zaidler@skbkontur.ru>
  • Loading branch information
EduardZaydler and Eduard Zaidler authored Sep 14, 2023
1 parent 61ed28d commit 669e34d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Api/MoiraApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,9 @@ export default class MoiraApi {
}

async delMetric(triggerId: string, metric: string): Promise<void> {
const url = `${this.apiUrl}/trigger/${encodeURI(triggerId)}/metrics?name=${encodeURI(
metric
)}`;
const url = `${this.apiUrl}/trigger/${encodeURI(
triggerId
)}/metrics?name=${encodeURIComponent(metric)}`;
const response = await fetch(url, {
method: "DELETE",
credentials: "same-origin",
Expand Down

0 comments on commit 669e34d

Please sign in to comment.