diff --git a/dashboard/src/components/VariantEditor.vue b/dashboard/src/components/VariantEditor.vue index 021a56ea..924b6994 100644 --- a/dashboard/src/components/VariantEditor.vue +++ b/dashboard/src/components/VariantEditor.vue @@ -37,6 +37,7 @@ const optionValues = computed(() => [...new Set(props.product.variants.map((v) = const optionValuesRequest = useAdminRead('catalog.get_attribute_values', { params: () => ({ attribute: props.product.option_attribute }), + immediate: Boolean(props.product.option_attribute), refetch: true, }) diff --git a/docs/implementation/media/product-without-options-after.png b/docs/implementation/media/product-without-options-after.png new file mode 100644 index 00000000..ddfd0125 Binary files /dev/null and b/docs/implementation/media/product-without-options-after.png differ diff --git a/docs/implementation/media/product-without-options-before.png b/docs/implementation/media/product-without-options-before.png new file mode 100644 index 00000000..25cf2a0c Binary files /dev/null and b/docs/implementation/media/product-without-options-before.png differ