Skip to content

Commit

Permalink
🔨chore: fixes type error for linked wikis giving null
Browse files Browse the repository at this point in the history
  • Loading branch information
Adebesin-Cell committed Nov 22, 2024
1 parent 23aadae commit 86272bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-worms-obey.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@everipedia/iq-utils": patch
---

Removes default object passing
5 changes: 1 addition & 4 deletions src/schema/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,21 +258,18 @@ export const Wiki = z
.nullable()
.transform((val) => val ?? [])
.default([]),

[LinkedWikiKey.Enum.founders]: z
.array(z.string())
.nullable()
.transform((val) => val ?? [])
.default([]),

[LinkedWikiKey.Enum.speakers]: z
.array(z.string())
.nullable()
.transform((val) => val ?? [])
.default([]),
})
.nullish()
.default({}),
.nullish(),
})
.refine(isEventWikiValid, {
message:
Expand Down

0 comments on commit 86272bf

Please sign in to comment.