mirror of
https://github.com/Kong/insomnia.git
synced 2026-10-26 08:38:58 -04:00
Fix request switcher active index when only workspaces match
This commit is contained in:
1 parent
b46d14a71c
commit
cc159d7090
1 file changed
+1
-1
@@ -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