Skip to content

Commit

Permalink
Removed unneeded id: number; from interface Idea and removed required…
Browse files Browse the repository at this point in the history
… from Idea <input> in JSX/HTML.
  • Loading branch information
faddah committed Oct 3, 2024
1 parent 0c5e67f commit d52454f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/ideas.astro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import IdeaList from "../components/idea-list.astro";
export const prerender: boolean = false;
interface Idea {
id: number;
text: string;
good: boolean;
}
Expand All @@ -33,7 +32,7 @@ const ideas: Idea[] = await db.select().from(Idea);
<form method="POST" action={actions.ideas.save}>
<label for="text">
<h3>Idea:</h3>
<input type="text" id="text" name="text" required />
<input type="text" id="text" name="text" />
</label>

<fieldset>
Expand Down

0 comments on commit d52454f

Please sign in to comment.