Skip to content

Commit f5514b6

Browse files
committed
chore: bump version to 1.21.0-beta-13 in package.json and package-lock.json; update instanceData handling in License component
1 parent a7ea5f8 commit f5514b6

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@devtron-labs/devtron-fe-common-lib",
3-
"version": "1.21.0-beta-12",
3+
"version": "1.21.0-beta-13",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Components/License/utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ export const parseDevtronLicenseDTOIntoLicenseCardData = <isCentralDashboard ext
7676
claimedByUserDetails,
7777
isFreemium,
7878
licenseStatusError,
79+
instanceData,
7980
} = licenseDTO || {}
8081

8182
return {
@@ -87,7 +88,7 @@ export const parseDevtronLicenseDTOIntoLicenseCardData = <isCentralDashboard ext
8788
isFreemium,
8889
licenseStatusError,
8990
// TODO: Move this check to key later
90-
isSaasInstance: !!licenseDTO?.instanceData?.devtronUrl,
91+
isSaasInstance: !!instanceData?.devtronUrl,
9192
...(currentUserEmail && currentUserEmail === claimedByUserDetails?.email
9293
? { licenseKey: license }
9394
: { licenseSuffix: license }),

src/Shared/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1144,7 +1144,7 @@ export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = Devt
11441144
instanceData: {
11451145
devtronUrl: string
11461146
devtronPassword: string
1147-
}
1147+
} | null
11481148
}
11491149
: {
11501150
claimedByUserDetails?: never

0 commit comments

Comments
 (0)