Skip to content

Commit

Permalink
Fix [Models Endpoints Monitoring, Metrics] clear search results when …
Browse files Browse the repository at this point in the history
…switching model endpoints (#2588)
  • Loading branch information
Taras-Hlukhovetskyi authored Jul 8, 2024
1 parent 29f47a8 commit 31298dd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/elements/MetricsSelector/MetricsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ const MetricsSelector = ({ maxSelectionNumber, metrics, name, onSelect, preselec
isOpen && 'metrics-selector-header_open'
)

useEffect(() => {
setNameFilter('')
}, [metrics])

useEffect(() => {
setAppliedMetrics(preselectedMetrics)
}, [preselectedMetrics])
Expand Down

0 comments on commit 31298dd

Please sign in to comment.