From 9ea25daf81dd7a7fc4501d5151a3de38bce263ed Mon Sep 17 00:00:00 2001 From: Joshua T Flowers Date: Wed, 13 Nov 2019 02:41:19 +0800 Subject: [PATCH] Update filter picker to use key instead of id (https://github.com/woocommerce/woocommerce-admin/pull/3214) --- .../packages/components/src/filter-picker/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/woocommerce-admin/packages/components/src/filter-picker/index.js b/plugins/woocommerce-admin/packages/components/src/filter-picker/index.js index 139d41b5678..2dd1c6fefb1 100644 --- a/plugins/woocommerce-admin/packages/components/src/filter-picker/index.js +++ b/plugins/woocommerce-admin/packages/components/src/filter-picker/index.js @@ -126,7 +126,7 @@ class FilterPicker extends Component { const { value, settings } = filter; const { param: filterParam } = settings; if ( tag ) { - this.update( value, { [ filterParam ]: tag.id } ); + this.update( value, { [ filterParam ]: tag.key } ); onClose(); } else { this.update( config.defaultValue || DEFAULT_FILTER );