diff --git a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Listing/SubscriptionPolicySelect.jsx b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Listing/SubscriptionPolicySelect.jsx index aa72529b19e..3357043d19d 100644 --- a/portals/devportal/src/main/webapp/source/src/app/components/Apis/Listing/SubscriptionPolicySelect.jsx +++ b/portals/devportal/src/main/webapp/source/src/app/components/Apis/Listing/SubscriptionPolicySelect.jsx @@ -91,8 +91,9 @@ class SubscriptionPolicySelect extends React.Component { }} style={{ width: 200 }} renderInput={(params) => ()} - renderOption={(policy) => ( + renderOption={(props, policy) => ( { classes={{ root: classes.fullWidth }} renderInput={(params) => } groupBy={(option) => option.tierPlan === 'COMMERCIAL' ? 'Commercial' : 'Free'} - renderOption={(policy) => ( - + renderOption={(props, policy) => ( + {policy.tierPlan === 'COMMERCIAL' ? ( { disableCloseOnSelect value={accessTokenRequest.scopesSelected} onChange={(e, newValue) => handleChange('scopesSelected', { target: { value: newValue } })} - renderOption={(option, { selected }) => ( - <> + renderOption={(props, option, { selected }) => ( +
  • {option} - +
  • )} renderInput={(params) => (