diff --git a/src/utils/maps.ts b/src/utils/maps.ts index 548051ad9..cfb3e4ee2 100644 --- a/src/utils/maps.ts +++ b/src/utils/maps.ts @@ -7,7 +7,7 @@ import { Node } from "@saleor/types"; import { MetadataInput } from "@saleor/types/globalTypes"; interface EdgesType { - edges?: Array<{ node: T }>; + edges?: { node: T }[]; } export function mapEdgesToItems(data?: EdgesType): T[] {