Merge branch 'add-edges-node-map-util' of https://github.com/mirumee/saleor-dashboard into add-edges-node-map-util

This commit is contained in:
Magdalena Markusik 2021-05-11 13:36:09 +02:00
commit 75eefa8a08

View file

@ -7,7 +7,7 @@ import { Node } from "@saleor/types";
import { MetadataInput } from "@saleor/types/globalTypes";
interface EdgesType<T> {
edges?: Array<{ node: T }>;
edges?: { node: T }[];
}
export function mapEdgesToItems<T>(data?: EdgesType<T>): T[] {