Skip to content

Commit

Permalink
Rename to helper.arrays.ts for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Adamik10 committed Dec 20, 2024
1 parent 31a3cbc commit 2d39d31
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/helpers/covers.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import { flatten } from "lodash"

import { filterFalsyValuesFromArray } from "@/lib/helpers/helper.arrays"
import { Cover, CoverImageUrls } from "@/lib/rest/cover-service-api/generated/model"

import { filterFalsyValuesFromArray } from "./arrays"

const removeEmptyCovers = (coverData: Cover[], sizes: (keyof CoverImageUrls)[]) => {
return coverData.filter((cover: Cover) => {
return sizes.map(size => cover.imageUrls?.[size]?.url)
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion lib/helpers/ids.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import { flatten } from "lodash"

import { filterFalsyValuesFromArray } from "@/lib/helpers/helper.arrays"

import {
IdentifierTypeEnum,
ManifestationIdentifiersFragment,
ManifestationWorkPageFragment,
WorkTeaserSearchPageFragment,
} from "../graphql/generated/fbi/graphql"
import { filterFalsyValuesFromArray } from "./arrays"

export const getIsbnsFromManifestation = (
manifestation: ManifestationIdentifiersFragment | ManifestationWorkPageFragment | null
Expand Down

0 comments on commit 2d39d31

Please sign in to comment.