]> git.r.bdr.sh - rbdr/forum/blobdiff - src/lib/stores/apollo.ts
Start migration to supabase
[rbdr/forum] / src / lib / stores / apollo.ts
index 4ef1986bec301e15b9bba6778734ad84b2bc61b9..c75dd8723652313e43eee311b82ba3db8f64f445 100644 (file)
@@ -52,7 +52,7 @@ export const store = function store<Type>({
 
                                set({
                                        loading: false,
 
                                set({
                                        loading: false,
-                                       data: result.data[key],
+                                       data: result.data[key].edges.map((item) => item.node),
                                        error: undefined
                                });
                        },
                                        error: undefined
                                });
                        },