Skip to content

Commit

Permalink
Fix note field rendering to handle undefined text value
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-learner committed Dec 27, 2024
1 parent 7661154 commit e0216e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/LabTest/CreateServiceRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function CreateServiceRequest({
placeholder="Type your note here."
id="note"
className="bg-white"
value={note[0].text}
value={note[0]?.text || ""}
onChange={handleNoteChange}
/>
</div>
Expand Down

0 comments on commit e0216e9

Please sign in to comment.