Entity filter is hiding after selecting entity from list
Pre-requisite
Entities should be configured in local_dev.yaml and there should be a questions linked to some of the entities.
Steps to Reproduce
Go to root page
Open filters panel
Select entity from entity dropdown
Entity dropdown disappears.
Root Cause
There is showEntityFilter prop passed to FilterPanel component and its value is set based on there is entity query params is present, which looks unnecessary, Entity filter should only depends on if there are entities available and on top of it if user purposefully want it to be hidden irrespectively available entities by manually passing showEntityFilter as false.
[X] Ready to work on fix
Screenshots
Without selecting entity filter hence no query param:
With entity filter selected hence there is a entity query param:
Duplicate entity refs in entity filter dropdown after selection:
Issue
Entity filter is hiding after selecting entity from list
Pre-requisite
Entities should be configured in local_dev.yaml and there should be a questions linked to some of the entities.
Steps to Reproduce
Root Cause
There is
showEntityFilter
prop passed toFilterPanel
component and its value is set based on there is entity query params is present, which looks unnecessary, Entity filter should only depends on if there are entities available and on top of it if user purposefully want it to be hidden irrespectively available entities by manually passing showEntityFilter as false.Screenshots
Without selecting entity filter hence no query param:
With entity filter selected hence there is a entity query param:
Duplicate entity refs in entity filter dropdown after selection: