fix(ui): repair usage of AJAX helper

pull/5866/head
Pavel Zavora 2022-02-17 07:07:32 +01:00
parent 4ac5a30150
commit adc07bfd97
1 changed files with 1 additions and 2 deletions

View File

@ -58,11 +58,10 @@ export const deleteSource = (source: Source) => {
export const pingKapacitor = async (kapacitor: Kapacitor): Promise<void> => {
try {
const data = await AJAX({
await AJAX({
method: 'GET',
url: kapacitor.links.ping,
})
return data
} catch (error) {
console.error(error)
throw error