fix: remove deleted DomainEntities on diagram

This commit is contained in:
Maël Gangloff
2024-09-04 18:15:20 +02:00
parent c3a6129dcb
commit b4aef61de2
2 changed files with 2 additions and 2 deletions

View File

@@ -13,7 +13,7 @@ export const domainToNode = (d: Domain) => ({
})
export const domainEntitiesToNode = (d: Domain, withRegistrar = false) => d.entities
.filter(e => !withRegistrar ? !e.roles.includes('registrar') : true)
.filter(e => !e.deleted && (!withRegistrar ? !e.roles.includes('registrar') : true))
.map(e => {
return {
id: e.entity.handle,