Skip to content

Commit

Permalink
available units update and correct url
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Feb 7, 2025
1 parent a7ca562 commit aa156e9
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/components/CippComponents/CippFormLicenseSelector.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ export const CippFormLicenseSelector = ({
api={{
addedField: addedField,
tenantFilter: userSettingsDefaults.currentTenant ?? undefined,
url: "/api/ListGraphRequest",
dataKey: "Results",
url: "/api/ListLicenses",
labelField: (option) =>
`${getCippLicenseTranslation([option])} (${
option.prepaidUnits.enabled - option.consumedUnits
} available)`,
`${getCippLicenseTranslation([option])} (${option?.availableUnits} available)`,
valueField: "skuId",
queryKey: `ListLicenses-${userSettingsDefaults.currentTenant ?? undefined}`,
queryKey: `ListLicenses-${userSettingsDefaults?.currentTenant ?? undefined}`,
data: {
Endpoint: "subscribedSkus",
$count: true,
Expand Down

0 comments on commit aa156e9

Please sign in to comment.