diff --git a/src/components/body/feedback_form/FeedbackForm.tsx b/src/components/body/feedback_form/FeedbackForm.tsx old mode 100644 new mode 100755 index 81c4e2a..6da94bf --- a/src/components/body/feedback_form/FeedbackForm.tsx +++ b/src/components/body/feedback_form/FeedbackForm.tsx @@ -120,6 +120,8 @@ export const NegativeFeedbackForm = ( const { inference, position, classList, onCancel, onSubmit } = props; const [selectedClass, setSelectedClass] = useState(defaultClass); const [comment, setComment] = useState(reasons[2]); + const [slassDropdownEnabled, setClassDropdownEnabled] = + useState(true); const filter = createFilterOptions(); @@ -198,6 +200,19 @@ export const NegativeFeedbackForm = ( } }, [classList, defaultClass, inference]); + useEffect(() => { + if (comment === "No Seed") { + setSelectedClass({ + id: -1, + classId: "", + label: "", + }); + setClassDropdownEnabled(false); + } else { + setClassDropdownEnabled(true); + } + }, [comment]); + return (