mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: remove deleted DomainEntities on diagram
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user