Below is the code that I currently have:
<div data-ng-if="hasSelectedCompany">
<tbody data-ng-repeat="driver in result.applications | filter: { name: selectedApplication } track by $index">
</div>
<div data-ng-if="hasSelectedSupportedCompany">
<tbody data-ng-repeat="driver in result.applications | filter: { name: selectedSupportedApplication } track by $index">
</div>
I am aware that there may be a better way to write this code, as it is not functioning correctly at the moment. The first condition does not work properly when both conditions are present. However, if I remove the second condition entirely, the first one works. Interestingly, the second condition works fine even with both of them included.
Could someone suggest an alternative approach to achieve the desired outcome?
Thank you in advance!