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