Skip to content

Commit b351f87

Browse files
committed
fix(docs): remove nullable from Zod schema definitions
1 parent c1ea460 commit b351f87

File tree

1 file changed

+7
-7
lines changed
  • packages/docs/src/components/playground

1 file changed

+7
-7
lines changed

packages/docs/src/components/playground/state.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,26 +126,26 @@ function buildSchema(columns: ColumnDef[]) {
126126
columns.forEach((col) => {
127127
switch (col.type) {
128128
case "text":
129-
shape[col.id] = z.string().nullable();
129+
shape[col.id] = z.string();
130130
break;
131131
case "number":
132-
shape[col.id] = z.number().nullable();
132+
shape[col.id] = z.number();
133133
break;
134134
case "boolean":
135-
shape[col.id] = z.boolean().nullable();
135+
shape[col.id] = z.boolean();
136136
break;
137137
case "select":
138-
shape[col.id] = z.string().nullable();
138+
shape[col.id] = z.string();
139139
break;
140140
case "multi-select":
141-
shape[col.id] = z.array(z.string()).nullable();
141+
shape[col.id] = z.array(z.string());
142142
break;
143143
case "date":
144-
shape[col.id] = z.date().nullable();
144+
shape[col.id] = z.date();
145145
break;
146146
default:
147147
ColumnTypeSchema.parse(col.type);
148-
shape[col.id] = z.unknown().nullable();
148+
shape[col.id] = z.unknown();
149149
}
150150
});
151151

0 commit comments

Comments
 (0)