mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03:00
chore(studio): switch opt in for logs (#45123)
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Make it opt in not default. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed the unified logs preview feature to properly respect both the feature flag and user preference settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
1 parent
e38ba624bc
commit
30403e8d70
1 file changed
+1
-1
@@ -94,7 +94,7 @@ export const useUnifiedLogsPreview = () => {
|
||||
|
||||
const isLoading = !flagsHaveLoaded || isOrgLoading
|
||||
const isEligible = unifiedLogsEnabled && isEnterpriseOrSupabaseOrg
|
||||
const isEnabled = isEligible && flags[LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS]
|
||||
const isEnabled = unifiedLogsEnabled && flags[LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS]
|
||||
|
||||
const enable = () => onUpdateFlag(LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS, true)
|
||||
const disable = () => onUpdateFlag(LOCAL_STORAGE_KEYS.UI_PREVIEW_UNIFIED_LOGS, false)
|
||||
|
||||
Reference in new issue
Block a user