mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
update dialog position, and clear feedback content after dialog disappear
This commit is contained in:
@@ -27,7 +27,10 @@ const ChatFeedbackContentDialog = ({ show, onCancel, onConfirm }) => {
|
||||
useEffect(() => {
|
||||
if (show) dispatch({ type: SHOW_CANVAS_DIALOG })
|
||||
else dispatch({ type: HIDE_CANVAS_DIALOG })
|
||||
return () => dispatch({ type: HIDE_CANVAS_DIALOG })
|
||||
return () => {
|
||||
dispatch({ type: HIDE_CANVAS_DIALOG })
|
||||
setFeedbackContent('')
|
||||
}
|
||||
}, [show, dispatch])
|
||||
|
||||
const component = show ? (
|
||||
|
||||
Reference in New Issue
Block a user