fix: trpc error at least one integration (#1660)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user