Skip to content

Commit

Permalink
Set static options in Programs autocompleter,
Browse files Browse the repository at this point in the history
as `Search` fix woocommerce/woocommerce-admin#6061 was released.
  • Loading branch information
tomalec committed May 20, 2021
1 parent 53ea575 commit dda400e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions js/src/reports/programs/filter-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,7 @@ export const programsFilterConfig = ( adsCampaigns ) => {
];
const autocompleter = {
name: 'programs',
// Promise.resolve will not be needed after
// https://github.com/woocommerce/woocommerce-admin/issues/6061
options: () => {
return Promise.resolve( programsList );
},
options: programsList,
getOptionIdentifier: ( option ) => option.id,
getOptionLabel: ( option ) => option.name,
getOptionKeywords: ( option ) => [ option.name ],
Expand Down

0 comments on commit dda400e

Please sign in to comment.