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

Unable to Close Panel After Adding Question with Empty Content in Channel #11901

Open
GarvitSinghal47 opened this issue Feb 18, 2024 · 2 comments

Comments

@GarvitSinghal47
Copy link
Contributor

Issue Description

When attempting to add a question with empty content (no question inside the ID) in the "New Quiz" section under Coach > Class > Plan > Quizzes, while signed in as an admin or coach on the develop branch, the expected behavior is for the panel to close upon clicking the cross. However, the panel does not close as expected, and the screen gets stuck on that frame. Subsequently, users have to resort to using the back button to navigate out of this state.

Observed Behavior

The panel does not close upon clicking the cross icon when attempting to add a question with empty content, resulting in the screen getting stuck on that frame.

Errors and Logs

Upon encountering this issue, the following error is logged in the console:
index.vue:241 TypeError: Cannot read properties of undefined (reading 'length')
at VueComponent.handleClosePanel (SectionSidePanel.vue:108:1)
at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
at VueComponent.invoker (vue.runtime.esm.js:2188:1)
at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
at Vue.$emit (vue.runtime.esm.js:3903:1)
at VueComponent.closePanel (index.vue:241:1)
at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
at VueComponent.invoker (vue.runtime.esm.js:2188:1)
at invokeWithErrorHandling (vue.runtime.esm.js:1863:1)
at Vue.$emit (vue.runtime.esm.js:3903:1)

Expected Behavior

The panel should close upon clicking the cross icon, regardless of the content of the question being added, ensuring smooth navigation within the application.

User-facing Consequences

This issue disrupts the user experience, particularly for admins and coaches trying to manage quizzes. It can lead to frustration and confusion, as users may not understand why the panel is not closing as expected.

Steps to Reproduce

  1. Sign in as an admin or coach.
  2. Navigate to Coach > Class > Plan > Quizzes.
  3. Enter the "New Quiz" section.
  4. Attempt to add a question with empty content (no question inside the ID).
  5. Try to close the panel using the cross icon.
Learn.mp4
@GarvitSinghal47 GarvitSinghal47 changed the title Unable to Close Panel After Adding Question with Empty Content On Channel Unable to Close Panel After Adding Question with Empty Content in Channel Feb 18, 2024
@rtibbles
Copy link
Member

I think this issue should be solved by this PR: #11862, once that's merged would be great if you could confirm @GarvitSinghal47!

@GarvitSinghal47
Copy link
Contributor Author

@rtibbles Most likely, this issue will be resolved with the merging of PR #11862. I will confirm and inform you once the PR has been successfully merged.

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

No branches or pull requests

2 participants