fix: Fix typecheck, lint issues and errors brought to dnshole summary. (#916)

This commit is contained in:
SeDemal authored and GitHub committed 2024-08-04 20:46:27 +02:00
1 parent 65c6854e44
commit 0cec1dbb17
5 files changed
+50 -65

No files matched your search

@@ -4,7 +4,7 @@ import { api } from "@homarr/api/server";
import type { WidgetProps } from "../../definition";
export default async function getServerDataAsync({ integrationIds }: WidgetProps<"dnsHoleSummary">) {
export default async function getServerDataAsync({ integrationIds }: WidgetProps<"dnsHoleControls">) {
if (integrationIds.length === 0) {
return {
initialData: [],
@@ -19,9 +19,9 @@ export default async function getServerDataAsync({ integrationIds }: WidgetProps
return {
initialData: currentDns,
};
} catch (error) {
} catch {
return {
initialData: undefined,
initialData: [],
};
}
}