mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
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(null)
|
||||||
}, [setPendingComment])
|
}, [setPendingComment])
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
if (controlMode !== ControlMode.Comment)
|
||||||
|
setPendingComment(null)
|
||||||
|
}, [controlMode, setPendingComment])
|
||||||
|
|
||||||
const handleCommentIconClick = useCallback(async (comment: WorkflowCommentList) => {
|
const handleCommentIconClick = useCallback(async (comment: WorkflowCommentList) => {
|
||||||
setPendingComment(null)
|
setPendingComment(null)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user