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

Don't fetch ndex status unless Pathways tab is active #4280

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

alisman
Copy link
Collaborator

@alisman alisman commented May 31, 2022

We need to wait until user navigates to the pathways tab before we call ndex service

Fixres cBioPortal/cbioportal#9569

hide={
!getServerConfig().show_ndex ||
!this.resultsViewPageStore
.remoteNdexUrl.isComplete ||
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

problem was that this actually gets executed even though the component which is consuming it won't render. i.e. if you look at code around the tab, you will see that there is no condition which prevents this from getting executed. you could put a condition activeTab=pathways, and that would also solve this problem, but really, the fetch for ndex status should be nested inside the pathways component so that it the code won't be reached unless the pathways tab actually renders.

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha -thank you! That makes sense

@alisman alisman added the bug label Jun 1, 2022
@alisman alisman merged commit 70dd865 into cBioPortal:master Jun 1, 2022
@alisman alisman deleted the ndex-active branch June 1, 2022 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants