= ({
name="description"
id="description"
onChange={handleDescriptionChange}
- value={currentDescription}
+ value={description}
placeholder="Flow description"
className="mt-2 max-h-[100px] font-normal"
rows={3}
diff --git a/src/frontend/src/components/inputListComponent/index.tsx b/src/frontend/src/components/inputListComponent/index.tsx
index a1ef04970..d936173c3 100644
--- a/src/frontend/src/components/inputListComponent/index.tsx
+++ b/src/frontend/src/components/inputListComponent/index.tsx
@@ -18,6 +18,9 @@ export default function InputListComponent({
}
}, [disabled]);
+ // @TODO Recursive Character Text Splitter - the value might be in string format, whereas the InputListComponent specifically requires an array format. To ensure smooth operation and prevent potential errors, it's crucial that we handle the conversion from a string to an array with the string as its element.
+ typeof value === "string" ? (value = [value]) : (value = value);
+
return (
{children}
-
+
Close
diff --git a/src/frontend/src/modals/genericModal/index.tsx b/src/frontend/src/modals/genericModal/index.tsx
index b29c5acf8..bfd8a8213 100644
--- a/src/frontend/src/modals/genericModal/index.tsx
+++ b/src/frontend/src/modals/genericModal/index.tsx
@@ -131,6 +131,7 @@ export default function GenericModal({
setNoticeData({
title: "Your template does not have any variables.",
});
+ setModalOpen(false);
} else {
setIsEdit(false);
setSuccessData({