mirror of
https://github.com/harness/drone.git
synced 2025-05-21 11:29:52 +08:00
fix: [CODE-2760] exclude principal calls from readonly Editor (#3234)
* fix: [CODE-2760] exclude principal calls from readonly Editor
This commit is contained in:
parent
19363d2b1a
commit
0ce1cde6c8
@ -211,7 +211,7 @@ export const Editor = React.memo(function CodeMirrorReactEditor({
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
fetchUsers('')
|
||||
!readonly && fetchUsers('')
|
||||
}, [])
|
||||
|
||||
useEffect(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user