Repository: supabase/supabase
File: apps/studio/data/storage/keys.ts (TypeScript)

Code before:
export const storageKeys = {
  buckets: (projectRef: string | undefined) => ['projects', projectRef, 'buckets'] as const,
  analyticsBuckets: (projectRef: string | undefined) =>
    ['projects', projectRef, 'analytics-buckets'] as const,
  vectorBuckets: (projectRef: string | undefined) =>
    ['projects', projectRef, 'vector-buckets'] as const,
  vectorBucket: (projectRef: string | undefined, vectorbucketName: string | undefined) =>
    ['projects', projectRef, 'vector-bucket', vectorbucketName] as const,
  vectorBucketsIndexes: (projectRef: string | undefined, vectorBucketName: string | undefined) =>
    ['projects', projectRef, 'vector-buckets', vectorBucketName, 'indexes'] as const,
  archive: (projectRef: string | undefined) => ['projects', projectRef, 'archive'] as const,
  icebergNamespaces: ({
    projectRef,
    catalog,
    warehouse,
    apikey,
  }: {
    projectRef?: string
    catalog: string
    warehouse: string
    apikey?: string
  }) =>
    [projectRef, 'catalog', catalog, 'warehouse', warehouse, 'namespaces', apikey].filter(Boolean),
  icebergNamespace: (catalog: string, warehouse: string, namespace: string) =>
    ['catalog', catalog, 'warehouse', warehouse, 'namespaces', namespace] as const,
  icebergNamespaceTables: ({
    projectRef,
    catalog,
    warehouse,
    namespace,
    apikey,
  }: {
    projectRef?: string
    catalog: string
    warehouse: string
    namespace: string
    apikey?: string
  }) =>
    [
      projectRef,
      'catalog',
      catalog,
      'warehouse',
      warehouse,
      'namespaces',
      namespace,
      'tables',
      apikey,

Review comment (suggestion):
```suggestion
  }: {
    projectRef?: string
    catalog: string
    warehouse: string
  }) =>
    [projectRef, 'catalog', catalog, 'warehouse', warehouse, 'namespaces'].filter(Boolean),
```

Code after:
export const storageKeys = {
  buckets: (projectRef: string | undefined) => ['projects', projectRef, 'buckets'] as const,
  analyticsBuckets: (projectRef: string | undefined) =>
    ['projects', projectRef, 'analytics-buckets'] as const,
  vectorBuckets: (projectRef: string | undefined) =>
    ['projects', projectRef, 'vector-buckets'] as const,
  vectorBucket: (projectRef: string | undefined, vectorbucketName: string | undefined) =>
    ['projects', projectRef, 'vector-bucket', vectorbucketName] as const,
  vectorBucketsIndexes: (projectRef: string | undefined, vectorBucketName: string | undefined) =>
    ['projects', projectRef, 'vector-buckets', vectorBucketName, 'indexes'] as const,
  archive: (projectRef: string | undefined) => ['projects', projectRef, 'archive'] as const,
  icebergNamespaces: ({
    projectRef,
    catalog,
    warehouse,
  }: {
    projectRef?: string
    catalog: string
    warehouse: string
  }) => [projectRef, 'catalog', catalog, 'warehouse', warehouse, 'namespaces'] as const,
  icebergNamespace: (catalog: string, warehouse: string, namespace: string) =>
    ['catalog', catalog, 'warehouse', warehouse, 'namespaces', namespace] as const,
  icebergNamespaceTables: ({
    projectRef,
    catalog,
    warehouse,
    namespace,
  }: {
    projectRef?: string
    catalog: string
    warehouse: string
    namespace: string
  }) =>
    [
      projectRef,
      'catalog',
      catalog,
      'warehouse',
      warehouse,
      'namespaces',
      namespace,
      'tables',
    ] as const,
}