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

XW-89: Transaction filter keeps expanded on selection #107

Merged

Conversation

MHamzaBham
Copy link
Contributor

No description provided.

@MHamzaBham MHamzaBham requested a review from mjawaids October 22, 2024 10:14
<li>
<div class="form-check" style="margin-left: {{ $indent * 20 }}px;">
<input type="checkbox" class="form-check-input category-checkbox" id="category{{ $subcategory->id }}" name="categories[]" value="{{ $subcategory->id }}" {{ isset($filters['categories']) && in_array($subcategory->id, $filters['categories']) ? 'checked' : '' }}>
<label class="form-check-label" for="category{{ $subcategory->id }}">
@if (count($subcategory->subcategories))
<i class="fa fa-caret-right toggle-icon" onclick="toggleSubcategories('subcategory-category{{ $subcategory->id }}', this, event)"></i>
@if (count($subcategory->subcategories) > 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think there is no need to check against >0. If count is >0 then it will be considered as true.

@mjawaids mjawaids merged commit 01e0daf into master Oct 22, 2024
3 checks passed
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