mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-10 03:28:03 +00:00
fix(webview): include settingsArray in AutoApproveDropdown dependencies to satisfy eslint react-hooks/exhaustive-deps
This commit is contained in:
parent
4cf10e1fab
commit
24a39fd6a6
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ export const AutoApproveDropdown = ({ disabled = false, triggerClassName = "" }:
|
|||
// Filter out Browser toggle when browser tool is disabled
|
||||
const visibleSettingsArray = React.useMemo(
|
||||
() => settingsArray.filter((s) => browserToolEnabled || s.key !== "alwaysAllowBrowser"),
|
||||
[browserToolEnabled],
|
||||
[settingsArray, browserToolEnabled],
|
||||
)
|
||||
|
||||
const visibleKeys = React.useMemo(() => visibleSettingsArray.map((s) => s.key), [visibleSettingsArray])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue