mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Format project link util per prettier
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
import { Editable, LocalityProject } from '../../../../frontend/src/shared/types'
|
||||
|
||||
export const removeDuplicateProjectLinks = <
|
||||
T extends { pid: number; rowState?: Editable<LocalityProject>['rowState'] }
|
||||
T extends {
|
||||
pid: number
|
||||
rowState?: Editable<LocalityProject>['rowState']
|
||||
}
|
||||
>(
|
||||
pendingLinks: T[],
|
||||
existingProjectIds: Set<number>,
|
||||
existingProjectIds: Set<number>
|
||||
) => {
|
||||
const seenNew = new Set<number>()
|
||||
return pendingLinks.filter(link => {
|
||||
|
||||
Reference in New Issue
Block a user