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

Update Splash.vue #167

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update Splash.vue #167

wants to merge 1 commit into from

Conversation

Sudhish23
Copy link

Fixes #158

Summary

To solve this issue, I have applied conditional rendering using Vue.js's v-if directive. The problem was that the "Class" information was being displayed even when the grade field was missing. To address this:

I wrapped the "Class" field display inside a v-if="grade" condition.
This ensures that the "Class" field is only rendered when the grade data is available from the backend.
If grade is missing, the field will be hidden, preventing empty or misleading information from appearing in the UI. By using above approach I have tried to solve the issue. If it is correct may I raise a Pull Request.

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.

[C4GT Community]: Do not show metadata on Splash if it does not exist in db
1 participant