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

VL_UTable-toggle-nestedData-fix_Vitalii-Dudnik #335

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

KinduD21
Copy link
Collaborator

Add computed property to check if nestedData.rows exists and its length is more than zero, so that toggle icon is only displayed when nested content is present

…e than zero, so that toggle icon is only displayed when nested content is present
@KinduD21 KinduD21 self-assigned this Jan 10, 2025
@KinduD21 KinduD21 closed this Jan 10, 2025
@KinduD21 KinduD21 reopened this Jan 10, 2025
const isNestedDataEmpty = computed(() => {
if (!props.row.nestedData) return true;

return !props.row.nestedData.rows || props.row.nestedData.rows.length === 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

props.row.nestedData.rows.length === 0; >>> !props.row.nestedData.rows.length

@KinduD21 KinduD21 merged commit d98716b into main Jan 13, 2025
1 check passed
@KinduD21 KinduD21 deleted the VL_UTable-toggle-nestedData-fix_Vitalii-Dudnik branch January 13, 2025 09:15
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