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> {
|
public getAliasFilterTypesByEntityTypes(entityTypes: Array<EntityType | AliasEntityType>): Array<AliasFilterType> {
|
||||||
const authState = getCurrentAuthState(this.store);
|
const authState = getCurrentAuthState(this.store);
|
||||||
const allAliasFilterTypes: Array<AliasFilterType> = Object.keys(AliasFilterType)
|
let allAliasFilterTypes: Array<AliasFilterType> = Object.values(AliasFilterType);
|
||||||
.map((key) => AliasFilterType[key])
|
if (!authState.edgesSupportEnabled) {
|
||||||
.filter(aft => {
|
allAliasFilterTypes = allAliasFilterTypes.filter(aliasFilterType => !edgeAliasFilterTypes.includes(aliasFilterType));
|
||||||
if (authState.edgesSupportEnabled) {
|
}
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return edgeAliasFilterTypes.indexOf(aft) === -1;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (!entityTypes || !entityTypes.length) {
|
if (!entityTypes || !entityTypes.length) {
|
||||||
return allAliasFilterTypes;
|
return allAliasFilterTypes;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user