Skip to content

Commit 3ec9f22

Browse files
Merge pull request #1575 from devtron-labs/fix/trigger-timeout-string
fix: add check for string type in TRIGGER_API_TIMEOUT
2 parents 77f78b6 + 58228c9 commit 3ec9f22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"homepage": "/dashboard",
66
"dependencies": {
7-
"@devtron-labs/devtron-fe-common-lib": "0.0.49",
7+
"@devtron-labs/devtron-fe-common-lib": "0.0.50",
88
"@rjsf/core": "^5.13.3",
99
"@rjsf/utils": "^5.13.3",
1010
"@rjsf/validator-ajv8": "^5.13.3",

src/components/common/helpers/Helpers.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ export const getNonEditableChartRepoText = (name: string): string => {
11371137

11381138
export const getAPIOptionsWithTriggerTimeout = (options?: APIOptions): APIOptions => {
11391139
const _options: APIOptions = options ? JSON.parse(JSON.stringify(options)) : {}
1140-
if (Number.isInteger(window._env_.TRIGGER_API_TIMEOUT)) {
1140+
if (window._env_.TRIGGER_API_TIMEOUT) {
11411141
_options.timeout = window._env_.TRIGGER_API_TIMEOUT
11421142
}
11431143

0 commit comments

Comments
 (0)