fix: trpc error at least one integration (#1660)

This commit is contained in:
Meier Lukas
2024-12-15 13:00:53 +01:00
committed by GitHub
parent 60311918ce
commit f857105994
9 changed files with 18 additions and 46 deletions

View File

@@ -29,7 +29,6 @@ import { useI18n } from "@homarr/translation/client";
import type { widgetKind } from ".";
import type { WidgetComponentProps } from "../../definition";
import { NoIntegrationSelectedError } from "../../errors";
import TimerModal from "./TimerModal";
const dnsLightStatus = (enabled: boolean | undefined) =>
@@ -184,10 +183,6 @@ export default function DnsHoleControlsWidget({
const controlAllButtonsVisible = options.showToggleAllButtons && integrationsWithInteractions.length > 0;
if (integrationIds.length === 0) {
throw new NoIntegrationSelectedError();
}
return (
<Flex
className="dns-hole-controls-stack"