Merge pull request #12817 from Budibase/fix/trigger-automation-test-flag-issue
Fix issue where flagClient could be undefined when running outside test mode
This commit is contained in:
commit
baa7f02e72
|
@ -1 +1 @@
|
|||
Subproject commit 11469c40d73ea58f2aec80c12c1946289b67c6f2
|
||||
Subproject commit 05c90ce55144e260da6688335c16783eab79bf96
|
|
@ -1 +1 @@
|
|||
Subproject commit 31f11bcd3323d2105a83ebfdee8facc2900bb879
|
||||
Subproject commit ce7722ed4474718596b465dcfd49bef36cab2e42
|
|
@ -94,7 +94,7 @@ export async function setTestFlag(id: string) {
|
|||
}
|
||||
|
||||
export async function checkTestFlag(id: string) {
|
||||
const flag = await flagClient.get(id)
|
||||
const flag = await flagClient?.get(id)
|
||||
return !!(flag && flag.testing)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue