Skip to content

Commit

Permalink
Remove warnings about unique keys for list
Browse files Browse the repository at this point in the history
Make htmlElements one value, instead of an array
  • Loading branch information
shapeseas committed Sep 18, 2024
1 parent 235de41 commit 8b0fb0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/app/editor/components/EditElement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ export function EditElement({
}

// FORM QUESTIONS
const htmlElements = []
htmlElements.push(
const htmlElements = (
<form onSubmit={handleSubmit(saveEdits)}>
<div>
<label className="form-control w-full max-w-xs">
Expand Down
3 changes: 1 addition & 2 deletions src/app/editor/components/EditStage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ export function EditStage({

// ----------- Form Questions -----------------

const htmlElements = []
htmlElements.push(
const htmlElements = (
<form>
{' '}
{/* onSubmit={handleSubmit(saveEdits)}> */}
Expand Down

0 comments on commit 8b0fb0a

Please sign in to comment.