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 workspaces.ts

Steven Teye3c02c02bed9
diff --git a/apps/web/lib/zod/schemas/workspaces.ts b/apps/web/lib/zod/schemas/workspaces.ts
index 3f6bcd5bf8..730bd2ca50 100644
--- a/apps/web/lib/zod/schemas/workspaces.ts
+++ b/apps/web/lib/zod/schemas/workspaces.ts
@@ -155,7 +155,7 @@ export const notificationTypes = z.enum([
export const WorkspaceSchemaExtended = WorkspaceSchema.extend({
users: z.array(
WorkspaceSchema.shape.users.element.extend({
- workspacePreferences: z.record(z.any()).optional(),
+ workspacePreferences: z.record(z.any()).nullish(),
}),
),
});