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: safer destructuring in autoAnswerableOptions to prevent error on initial editor load #3932

Merged
merged 1 commit into from
Nov 11, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Nov 11, 2024

It appears that when we're loading flows, we're sometimes attempting to run autoAnswerableOptions before the whole flow has loaded (eg on _root node rather than true current card??) leading to errors like the one screenshot below & reported by Ian Grace in #help-issues here: https://opensystemslab.slack.com/archives/C5Q59R3HB/p1731336388546549

This tries destructuring the single node first before immediately assuming it has { type, data, edges } too, similar with passport to account for cases where it's empty (eg no data yet)
Screenshot from 2024-11-11 16-33-56

@jessicamcinchak
Copy link
Member Author

Copy link

github-actions bot commented Nov 11, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak jessicamcinchak merged commit 5bbec23 into main Nov 11, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/autoAnswerableOptions-bug branch November 11, 2024 16:07
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.

2 participants