Skip to content

Commit

Permalink
clear selected endpoint on service change (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiBerm authored Feb 3, 2022
1 parent 9cd167f commit fe8cb61
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/webview/src/components/testsBrowserComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ const TestsBrowserComponent: React.FC<{}> = observer(() => {
}
}, [up9AuthStore.defaultWorkspace]);

useEffect(() => {
setSelectedEndpoint(null);
}, [selectedService]);


const setDefaultWorkspace = (workspace: string) => {
setExtensionDefaultWorkspace(workspace);
Expand Down

0 comments on commit fe8cb61

Please sign in to comment.