mirror of
https://github.com/langgenius/dify.git
synced 2026-04-07 00:46:50 +08:00
fix switch to cursor mode comment input still exists
This commit is contained in:
parent
2310145937
commit
1c5c28a82c
@ -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