fix: empty screen added in routing position page when no options are present (#25170)

Co-authored-by: Dhairyashil Shinde <[email protected]>
This commit is contained in:
spandevandDhairyashil Shinde authored and GitHub committed 2025-11-17 20:06:39 +00:00
1 parent da9ee5c186
commit 74af23136c
2 files changed
+13

No files matched your search

@@ -9,6 +9,7 @@ import { Label } from "@calcom/ui/components/form";
import { Select } from "@calcom/ui/components/form";
import { TestForm } from "../../components/apps/routing-forms/TestForm";
import { EmptyScreen } from "@calcom/ui/components/empty-screen";
export default function InsightsVirtualQueuesPage() {
const { t } = useLocale();
@@ -23,6 +24,16 @@ export default function InsightsVirtualQueuesPage() {
setSelectedForm(routingForms[0]);
}
if (routingForms && routingForms.length === 0) {
return (
<EmptyScreen
Icon="split"
headline={t("no_routing_forms")}
description={t("empty_routing_forms_description")}
/>
)
}
return (
<>
<Label>{t("routing_form")}</Label>