Update filter picker to use key instead of id (https://github.com/woocommerce/woocommerce-admin/pull/3214)
This commit is contained in:
parent
d29f93999a
commit
9ea25daf81
|
@ -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 );
|
||||||
|
|
Loading…
Reference in New Issue