Remove quantityAvailable from product variant query
The Storefront API only returns ProductVariant.quantityAvailable when the app has the unauthenticated_read_product_inventory scope, and nothing in the template reads the field — availableForSale already drives stock state. Also hides the editor left sidebar by default in PageEditor. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FaxyZTjAyd7UXK8xpQpF7o
This commit is contained in:
co-authored by
Claude Opus 5
parent
bd68e1eafb
commit
bd7e6810b7
@@ -42,6 +42,7 @@ export default function PageEditor({ pagePath, page }: PageEditorProps) {
|
|||||||
<Editor
|
<Editor
|
||||||
theme="light"
|
theme="light"
|
||||||
color="teal"
|
color="teal"
|
||||||
|
ui={{ leftSideBarVisible: false }}
|
||||||
config={appConfig as any}
|
config={appConfig as any}
|
||||||
data={data}
|
data={data}
|
||||||
plugins={plugins}
|
plugins={plugins}
|
||||||
|
|||||||
@@ -48,7 +48,6 @@ export const ProductFragment = gql(`
|
|||||||
id
|
id
|
||||||
title
|
title
|
||||||
availableForSale
|
availableForSale
|
||||||
quantityAvailable
|
|
||||||
selectedOptions {
|
selectedOptions {
|
||||||
name
|
name
|
||||||
value
|
value
|
||||||
|
|||||||
Reference in New Issue
Block a user