Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix ts error

Steven Teya7350b5c71ff
diff --git a/apps/web/ui/modals/add-edit-domain-modal/index.tsx b/apps/web/ui/modals/add-edit-domain-modal/index.tsx
index 86be0e8a04..54295c78ff 100644
--- a/apps/web/ui/modals/add-edit-domain-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-domain-modal/index.tsx
@@ -38,11 +38,12 @@ function AddEditDomainModal({
}) {
const router = useRouter();
const { slug } = useParams() as { slug: string };
- const { logo, plan } = useProject();
+ const { id, logo, plan } = useProject();
const { queryParams } = useRouterStuff();
const [data, setData] = useState<DomainProps>(
props || {
+ id: "",
slug: "",
verified: false,
primary: false,
@@ -50,6 +51,7 @@ function AddEditDomainModal({
target: "",
type: "redirect",
clicks: 0,
+ projectId: id || "",
},
);