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.

Update program-resources.ts

Kiran Ka0b5125f37f3
diff --git a/apps/web/lib/zod/schemas/program-resources.ts b/apps/web/lib/zod/schemas/program-resources.ts
index 58ab2bf0bb..00b90760b5 100644
--- a/apps/web/lib/zod/schemas/program-resources.ts
+++ b/apps/web/lib/zod/schemas/program-resources.ts
@@ -1,6 +1,11 @@
import { z } from "zod";
-export const PROGRAM_RESOURCE_TYPES = ["logo", "file", "color", "link"] as const;
+export const PROGRAM_RESOURCE_TYPES = [
+ "logo",
+ "file",
+ "color",
+ "link",
+] as const;
export type ProgramResourceType = (typeof PROGRAM_RESOURCE_TYPES)[number];
@@ -27,5 +32,5 @@ export const programResourcesSchema = z.object({
logos: z.array(programResourceFileSchema),
colors: z.array(programResourceColorSchema),
files: z.array(programResourceFileSchema),
- links: z.array(programResourceLinkSchema),
+ links: z.array(programResourceLinkSchema).default([]),
});