Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash navigating to cluster explorer #308

Merged
merged 1 commit into from
Aug 21, 2023
Merged

Fix crash navigating to cluster explorer #308

merged 1 commit into from
Aug 21, 2023

Conversation

torchiaf
Copy link
Contributor

Summary

Fixes #307

Technical notes summary

The property schema is null when navigating from embedded Epinio to cluster explorer.

  get namespaceLocation() {
    return createEpinioRoute(`c-cluster-resource-id`, {
      cluster:  this.$rootGetters['clusterId'],
      resource: this.schema.id,
      id:       this.meta.namespace,
    });
  }

Is it probably a side effect of routing which triggers a reload of Epinio pages?
Using the optional operator works fine though, namespaceLocation is not required when moving out from Epinio.

…ster explorer - only embedded mode.

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
@torchiaf torchiaf self-assigned this Aug 17, 2023
@richard-cox richard-cox added this to the v1.10.0 milestone Aug 21, 2023
@torchiaf torchiaf merged commit 707e439 into epinio:main Aug 21, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Navigating from an app detail page a cluster in cluster explorer throws white page error
2 participants