diff --git a/lib/helpers/covers.ts b/lib/helpers/covers.ts index 2a80d69..c12a162 100644 --- a/lib/helpers/covers.ts +++ b/lib/helpers/covers.ts @@ -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) diff --git a/lib/helpers/arrays.ts b/lib/helpers/helper.arrays.ts similarity index 100% rename from lib/helpers/arrays.ts rename to lib/helpers/helper.arrays.ts diff --git a/lib/helpers/ids.ts b/lib/helpers/ids.ts index d589556..8cd02f0 100644 --- a/lib/helpers/ids.ts +++ b/lib/helpers/ids.ts @@ -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