Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

style: auto-fix lint and format

ajnart569293275ddf
diff --git a/packages/widgets/src/beszel-alerts/component.tsx b/packages/widgets/src/beszel-alerts/component.tsx
index 331028770..82725db51 100644
--- a/packages/widgets/src/beszel-alerts/component.tsx
+++ b/packages/widgets/src/beszel-alerts/component.tsx
@@ -50,24 +50,21 @@ export default function BeszelAlertsWidget({
clientApi.widget.beszel.subscribeAlerts.useSubscription(alertsInput, {
enabled: !isEditMode,
onData(data) {
- utils.widget.beszel.getAlerts.setData(alertsInput,
- (prev) => {
- if (!prev) return prev;
- return prev.map((r) =>
- r.integrationId === data.integrationId
- ? {
- ...r,
- alerts: data.alerts.alerts,
- history: data.alerts.history,
- updatedAt: data.timestamp,
- }
- : r,
- );
- },
+ utils.widget.beszel.getAlerts.setData(alertsInput, (prev) => {
+ if (!prev) return prev;
+ return prev.map((r) =>
+ r.integrationId === data.integrationId
+ ? {
+ ...r,
+ alerts: data.alerts.alerts,
+ history: data.alerts.history,
+ updatedAt: data.timestamp,
+ }
+ : r,
);
- },
+ });
},
- );
+ });
const systemNameMap = useMemo(() => {
const map: Record<string, string> = {};