mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2026-04-06 01:25:33 +00:00
fix linting
This commit is contained in:
parent
818d9a0c5c
commit
8b6d57add2
@ -41,12 +41,13 @@ export const RelationsView = ({
|
|||||||
return outgoingItems
|
return outgoingItems
|
||||||
case 'ingoing':
|
case 'ingoing':
|
||||||
return ingoingItems
|
return ingoingItems
|
||||||
case 'bidirectional':
|
case 'bidirectional': {
|
||||||
// Combine both arrays and remove duplicates
|
// Combine both arrays and remove duplicates
|
||||||
const allItems = [...outgoingItems, ...ingoingItems]
|
const allItems = [...outgoingItems, ...ingoingItems]
|
||||||
return allItems.filter((item, index, self) =>
|
return allItems.filter(
|
||||||
index === self.findIndex(i => i.id === item.id)
|
(item, index, self) => index === self.findIndex((i) => i.id === item.id),
|
||||||
)
|
)
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return outgoingItems
|
return outgoingItems
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user