Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
docs: eslint error
Browse files Browse the repository at this point in the history
  • Loading branch information
jayair committed Oct 19, 2024
1 parent 266b5e7 commit 8cad056
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/aws-nextjs/components/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function Form({ url }: { url: string }) {
onSubmit={async (e) => {
e.preventDefault();

const file = (e.target as HTMLFormElement).file.files?.[0]!;
const file = (e.target as HTMLFormElement).file.files?.[0] ?? null;

const image = await fetch(url, {
body: file,
Expand Down
2 changes: 1 addition & 1 deletion www/src/content/docs/docs/start/aws/nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function Form({ url }: { url: string }) {
onSubmit={async (e) => {
e.preventDefault();

const file = (e.target as HTMLFormElement).file.files?.[0]!;
const file = (e.target as HTMLFormElement).file.files?.[0] ?? null;

const image = await fetch(url, {
body: file,
Expand Down

0 comments on commit 8cad056

Please sign in to comment.