The logic that enables Unique family varinats checkbox was executing before getting the selected dataset id.
Also the checkbox was enabled when there are no families.
Aim
To fix the issues
Implementation
Move enabling the checkbox in private async method enableUniqueFamilyVarinats() and call it in the subscribe of getDataset() and put it.
Add checking if there are families in the template and if no families, the checkbox will be disabled.
Background
The logic that enables Unique family varinats checkbox was executing before getting the selected dataset id. Also the checkbox was enabled when there are no families.
Aim
To fix the issues
Implementation
Move enabling the checkbox in private async method
enableUniqueFamilyVarinats()
and call it in the subscribe ofgetDataset()
and put it. Add checking if there are families in the template and if no families, the checkbox will be disabled.