From 2d39d318fd5e0e7408cd42139b6e66bc4562438f Mon Sep 17 00:00:00 2001 From: Adam Antal Date: Fri, 20 Dec 2024 10:52:10 +0100 Subject: [PATCH] Rename to helper.arrays.ts for consistency --- lib/helpers/covers.ts | 3 +-- lib/helpers/{arrays.ts => helper.arrays.ts} | 0 lib/helpers/ids.ts | 3 ++- 3 files changed, 3 insertions(+), 3 deletions(-) rename lib/helpers/{arrays.ts => helper.arrays.ts} (100%) diff --git a/lib/helpers/covers.ts b/lib/helpers/covers.ts index 2a80d697..c12a1629 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 d589556e..8cd02f08 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