Skip to content

Commit

Permalink
fix(ServiceDropdown): Retrieve last used service name only if it's no…
Browse files Browse the repository at this point in the history
…t provided in the URL (#284)
  • Loading branch information
ifrost authored Nov 19, 2024
1 parent 1c85656 commit 28ca16e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class ServiceNameVariable extends QueryVariable {
onActivate() {
const { serviceName: serviceNameFromStorage } = userStorage.get(userStorage.KEYS.PROFILES_EXPLORER) || {};

if (serviceNameFromStorage) {
if (serviceNameFromStorage && !this.state.value) {
this.setState({ value: serviceNameFromStorage });
}

Expand Down

1 comment on commit 28ca16e

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unit test coverage

Lines Statements Branches Functions
Coverage: 13%
13.61% (543/3988) 10.41% (147/1412) 9.89% (125/1263)

Please sign in to comment.