Update filter picker to use key instead of id (https://github.com/woocommerce/woocommerce-admin/pull/3214)

This commit is contained in:
Joshua T Flowers 2019-11-13 02:41:19 +08:00 committed by Paul Sealock
parent d29f93999a
commit 9ea25daf81
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ class FilterPicker extends Component {
const { value, settings } = filter; const { value, settings } = filter;
const { param: filterParam } = settings; const { param: filterParam } = settings;
if ( tag ) { if ( tag ) {
this.update( value, { [ filterParam ]: tag.id } ); this.update( value, { [ filterParam ]: tag.key } );
onClose(); onClose();
} else { } else {
this.update( config.defaultValue || DEFAULT_FILTER ); this.update( config.defaultValue || DEFAULT_FILTER );