aksd: fix: AKS project overview cards disappear when plugin config is not initialized.#464
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes an AKS Desktop rendering failure where AKS Project overview cards could disappear when the plugin config hasn’t been initialized (e.g., fresh install / localStorage.removeItem('pluginConfigs')), by preventing a runtime error while checking the GitHub Pipelines preview feature flag.
Changes:
- Guard access to
previewFeaturesStore.get()with optional chaining when deciding whether the Pipeline overview section is enabled.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
gambtho
pushed a commit
to gambtho/aks-desktop
that referenced
this pull request
Mar 17, 2026
aksd: fix: AKS project overview cards dissapear when plugin config is not initialized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Noticed when testing latest builds that the overview cards weren't rendering (Scaling, Metrics, Cluster Capabilities). I traced it to the 'Enable Github Pipelines' plugin setting. If you've never toggled it, the plugin config is uninitialized, which propagates in an error when registering the project since
isEnabledends up receiving an undefined value.To fix this, added the
?operator for a graceful fallback to false if undefined, so we can still view AKS Overview cards if plugin settings haven't been set yet.How it looks:

To test- you can manually remove your plugin config with
localStorage.removeItem('pluginConfigs')& then attempt to view an AKS project. You should see the AKS overview cards appear as intended.