Code review changes
This commit is contained in:
parent
cd78514bc0
commit
60acd6f56a
@ -502,15 +502,10 @@ export class EntityService {
|
||||
|
||||
public getAliasFilterTypesByEntityTypes(entityTypes: Array<EntityType | AliasEntityType>): Array<AliasFilterType> {
|
||||
const authState = getCurrentAuthState(this.store);
|
||||
const allAliasFilterTypes: Array<AliasFilterType> = Object.keys(AliasFilterType)
|
||||
.map((key) => AliasFilterType[key])
|
||||
.filter(aft => {
|
||||
if (authState.edgesSupportEnabled) {
|
||||
return true;
|
||||
} else {
|
||||
return edgeAliasFilterTypes.indexOf(aft) === -1;
|
||||
let allAliasFilterTypes: Array<AliasFilterType> = Object.values(AliasFilterType);
|
||||
if (!authState.edgesSupportEnabled) {
|
||||
allAliasFilterTypes = allAliasFilterTypes.filter(aliasFilterType => !edgeAliasFilterTypes.includes(aliasFilterType));
|
||||
}
|
||||
});
|
||||
if (!entityTypes || !entityTypes.length) {
|
||||
return allAliasFilterTypes;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user