style(services): apply formatter to frontend services runtime
This commit is contained in:
@@ -36,7 +36,11 @@ function formatPrometheusValue(result: PromQLResult | undefined): string {
|
||||
return JSON.stringify(result, null, 2);
|
||||
}
|
||||
|
||||
export function PrometheusMetricWidget({ widget, refreshIntervalMs, description }: Props) {
|
||||
export function PrometheusMetricWidget({
|
||||
widget,
|
||||
refreshIntervalMs,
|
||||
description,
|
||||
}: Props) {
|
||||
const { data, isLoading } = useWidgetData(widget.id, refreshIntervalMs);
|
||||
const result = data?.data?.result as PromQLResult | undefined;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user