Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add explanation to some magic ✨

dominik-zeglena34e9f70e0c7
diff --git a/saleor/static/dashboard-next/index.tsx b/saleor/static/dashboard-next/index.tsx
index 715e1af381..42142e5785 100644
--- a/saleor/static/dashboard-next/index.tsx
+++ b/saleor/static/dashboard-next/index.tsx
@@ -70,6 +70,8 @@ const uploadLink = createUploadLink({
const apolloClient = new ApolloClient({
cache: new InMemoryCache({
dataIdFromObject: (obj: any) => {
+ // We need to set manually shop's ID, since it is singleton and
+ // API does not return its ID
if (obj.__typename === "Shop") {
return "shop";
}