Skip to content

Commit

Permalink
fixed compiled warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
denys-holub committed Mar 6, 2023
1 parent 9b1fc1e commit c9f92b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/webui/src/layout/Dashboard/DbsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const DbsTable = () => {
queryClient.invalidateQueries({ queryKey: QueryKeys.db });
handleAlertOpen("Monitored DB has been deleted successfully!", "success");
},
onError: (error: any) => {
handleAlertOpen(error.response.data, "error");
onError: (resultError: any) => {
handleAlertOpen(resultError.response.data, "error");
}
});

Expand Down
4 changes: 2 additions & 2 deletions src/webui/src/layout/MetricDefinitions/MetricsTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export const MetricsTable = () => {
queryClient.invalidateQueries({ queryKey: QueryKeys.metric });
handleAlertOpen("Metric has been deleted successfully!", "success");
},
onError: (error: any) => {
handleAlertOpen(error.response.data, "error");
onError: (resultError: any) => {
handleAlertOpen(resultError.response.data, "error");
}
});

Expand Down

0 comments on commit c9f92b5

Please sign in to comment.