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:
Peter Clement 2024-01-19 15:27:15 +00:00 committed by GitHub
commit baa7f02e72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 11469c40d73ea58f2aec80c12c1946289b67c6f2 Subproject commit 05c90ce55144e260da6688335c16783eab79bf96

@ -1 +1 @@
Subproject commit 31f11bcd3323d2105a83ebfdee8facc2900bb879 Subproject commit ce7722ed4474718596b465dcfd49bef36cab2e42

View File

@ -94,7 +94,7 @@ export async function setTestFlag(id: string) {
} }
export async function checkTestFlag(id: string) { export async function checkTestFlag(id: string) {
const flag = await flagClient.get(id) const flag = await flagClient?.get(id)
return !!(flag && flag.testing) return !!(flag && flag.testing)
} }