Skip to content

Commit eb8ca05

Browse files
committed
feat: add prop for prevent redirection on invalid license
1 parent 9f7856f commit eb8ca05

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

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.10.0-patch-1-beta-2",
3+
"version": "1.10.0-patch-1-beta-3",
44
"description": "Supporting common component library",
55
"type": "module",
66
"main": "dist/index.js",

src/Shared/Analytics/analytics.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ import { get } from '@Common/API'
22
import { ROUTES } from '@Common/Constants'
33
import { ServerAnalyticsEventType } from './types'
44

5-
export const handleSendAnalyticsEventToServer = async (eventType: ServerAnalyticsEventType) => {
5+
export const handleSendAnalyticsEventToServer = async (
6+
eventType: ServerAnalyticsEventType,
7+
preventLicenseRedirect?: boolean,
8+
) => {
69
try {
7-
await get(`${ROUTES.DASHBOARD_EVENT}/${eventType}`)
10+
await get(`${ROUTES.DASHBOARD_EVENT}/${eventType}`, { preventLicenseRedirect })
811
} catch {
912
// Do nothing
1013
}

0 commit comments

Comments
 (0)