diff --git a/src/schema/v2/filterArtworksConnection.ts b/src/schema/v2/filterArtworksConnection.ts index f70c50c3a6..f152896fd6 100644 --- a/src/schema/v2/filterArtworksConnection.ts +++ b/src/schema/v2/filterArtworksConnection.ts @@ -2,7 +2,7 @@ import { pageable } from "relay-cursor-paging" import { convertConnectionArgsToGravityArgs, removeNulls, - removeEmptyValues, + removeObjectEmptyValues, isExisty, } from "lib/helpers" import { @@ -491,9 +491,9 @@ const filterArtworksConnectionTypeFactory = ( info ) => { const argsProvidedAtRoot = convertFilterArgs(rootArguments as any) - removeEmptyValues(argsProvidedAtRoot) + removeObjectEmptyValues(argsProvidedAtRoot) const argsProvidedInInput = convertFilterArgs(input ?? {}) - removeEmptyValues(argsProvidedInInput) + removeObjectEmptyValues(argsProvidedInInput) const options: any = { ...argsProvidedAtRoot,