From 013c3446453bd5ccb4b0686fcac32ae815ec033b Mon Sep 17 00:00:00 2001 From: Vaibhav <117663341+7ttp@users.noreply.github.com> Date: Thu, 21 May 2026 18:39:55 +0530 Subject: [PATCH] fix: api key copy (#46159) ## TL;DR a smol fix regarding masked secret API key text being copied when reveal fails ## ref: - closes https://github.com/supabase/supabase/issues/46157 ## Summary by CodeRabbit * **Bug Fixes** * Improved secret API key copy behavior to handle edge cases where the reveal operation returns no value, preventing unintended fallback behavior. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/supabase/supabase/pull/46159?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) --- apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx b/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx index 1ea719f27b3..d1af5cf0365 100644 --- a/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx +++ b/apps/studio/components/interfaces/APIKeys/ApiKeyPill.tsx @@ -76,7 +76,7 @@ export function ApiKeyPill({ return key ?? '' } catch { toast.error('Failed to copy secret API key') - return apiKey.api_key + return '' } }