Skip to content

Commit 86c41ad

Browse files
committed
docs(fix): schema issue in api route
1 parent 13443ef commit 86c41ad

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

docs/app/routes/api/feedback.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const action: ActionFunction = async ({ request }) => {
66
const schema = z.object({
77
feedback: z.string().min(1),
88
page_title: z.string().min(1),
9-
variant: z.string(),
9+
upvoted: z.boolean(),
1010
})
1111

1212
const url = process.env.SUPABASE_URL

docs/app/routes/examples.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,7 @@ export default function Examples() {
180180
</Anchor>
181181
.
182182
</Copy>
183-
<ExampleFilters
184-
method="post"
185-
ref={formRef}
186-
onChange={() => console.log('form change')}>
183+
<ExampleFilters method="post" ref={formRef}>
187184
<Heading tag="h2" fontStyle="$XS" style={{ display: 'inline-block' }}>
188185
{`Alternatively, check out examples by `}
189186
</Heading>

0 commit comments

Comments
 (0)