Skip to content

Commit

Permalink
fix: use textarea for notes (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
lynchee-owo authored Apr 4, 2024
1 parent 2dc43aa commit 1a107ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/CustomKnowledgeBase/NewKnowledgeForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
ModalOverlay,
ModalContent,
ModalCloseButton,
Textarea,
} from "@chakra-ui/react";
import { DeleteIcon, SmallCloseIcon } from "@chakra-ui/icons";
import { Formik, Form, Field } from "formik";
Expand Down Expand Up @@ -433,7 +434,7 @@ const NewKnowledgeForm = ({
{rule.knowledge.notes?.map((note, noteIndex) => (
<InputGroup key={noteIndex} size="md" mb={1}>
<Field
as={Input}
as={Textarea}
name={`rules[${ruleIndex}].knowledge.notes[${noteIndex}]`}
placeholder="Enter note"
/>
Expand Down

0 comments on commit 1a107ed

Please sign in to comment.