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:
commit
75eefa8a08
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import { Node } from "@saleor/types";
|
||||||
import { MetadataInput } from "@saleor/types/globalTypes";
|
import { MetadataInput } from "@saleor/types/globalTypes";
|
||||||
|
|
||||||
interface EdgesType<T> {
|
interface EdgesType<T> {
|
||||||
edges?: Array<{ node: T }>;
|
edges?: { node: T }[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export function mapEdgesToItems<T>(data?: EdgesType<T>): T[] {
|
export function mapEdgesToItems<T>(data?: EdgesType<T>): T[] {
|
||||||
|
|
Loading…
Reference in a new issue