From 4605f7ee5775f6ed56888464618f51e42460ec7e Mon Sep 17 00:00:00 2001 From: Matt Sherman Date: Thu, 19 Oct 2023 08:23:44 -0400 Subject: [PATCH] Set tab order based on block's order --- packages/js/product-editor/src/blocks/generic/tab/edit.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/js/product-editor/src/blocks/generic/tab/edit.tsx b/packages/js/product-editor/src/blocks/generic/tab/edit.tsx index 02655e0c72f..48b38f2a61d 100644 --- a/packages/js/product-editor/src/blocks/generic/tab/edit.tsx +++ b/packages/js/product-editor/src/blocks/generic/tab/edit.tsx @@ -26,7 +26,12 @@ export function Edit( { context, }: ProductEditorBlockEditProps< TabBlockAttributes > ) { const blockProps = useWooBlockProps( attributes ); - const { id, title, order, isSelected: contextIsSelected } = attributes; + const { + id, + title, + _templateBlockOrder: order, + isSelected: contextIsSelected, + } = attributes; const isSelected = context.selectedTab === id; if ( isSelected !== contextIsSelected ) { setAttributes( { isSelected } );