mirror of https://github.com/langgenius/dify.git
fix switch to cursor mode comment input still exists
This commit is contained in:
parent
d05ba90779
commit
517f8aafdc
|
|
@ -124,6 +124,11 @@ export const useWorkflowComment = () => {
|
|||
setPendingComment(null)
|
||||
}, [setPendingComment])
|
||||
|
||||
useEffect(() => {
|
||||
if (controlMode !== ControlMode.Comment)
|
||||
setPendingComment(null)
|
||||
}, [controlMode, setPendingComment])
|
||||
|
||||
const handleCommentIconClick = useCallback(async (comment: WorkflowCommentList) => {
|
||||
setPendingComment(null)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue