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

Cannot read properties of undefined (reading 'delete') #6846

Closed
MarcSkovMadsen opened this issue May 17, 2024 · 1 comment · Fixed by #6847
Closed

Cannot read properties of undefined (reading 'delete') #6846

MarcSkovMadsen opened this issue May 17, 2024 · 1 comment · Fixed by #6847
Labels
type: bug Something isn't correct or isn't working

Comments

@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented May 17, 2024

panel==1.4.2

I'm working on a complex Panel app using Perspective and other components.

When it loads it works fine.

image

But when I select a different backtest in the sidebar it crashes

image

At least you will have to handle the case where this.perspective_element is undefined.

image

I hope I can contribute a minimal, reproducible example later.

@MarcSkovMadsen MarcSkovMadsen added TRIAGE Default label for untriaged issues type: bug Something isn't correct or isn't working and removed TRIAGE Default label for untriaged issues labels May 17, 2024
@MarcSkovMadsen MarcSkovMadsen added this to the next milestone May 17, 2024
@MarcSkovMadsen
Copy link
Collaborator Author

MarcSkovMadsen commented May 17, 2024

I can see that the problem is that Perspective has not been rendered before its removed because it sits in a part of the Accordion that is not expanded. Thus this.perspective_element has never been defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants