mirror of
https://github.com/Kong/insomnia.git
synced 2026-05-24 16:51:06 -04:00
Fix request switcher active index when only workspaces match
This commit is contained in:
@@ -259,7 +259,7 @@ class RequestSwitcherModal extends React.PureComponent<Props, State> {
|
||||
|
||||
this.setState({
|
||||
searchString,
|
||||
activeIndex: indexOfFirstNonActiveRequest,
|
||||
activeIndex: indexOfFirstNonActiveRequest >= 0 ? indexOfFirstNonActiveRequest : 0,
|
||||
matchedRequests: (matchedRequests: Array<any>).slice(0, maxRequests),
|
||||
matchedWorkspaces: matchedWorkspaces.slice(0, maxWorkspaces),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user