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