toOptionText() — supabase Function Reference
Architecture documentation for the toOptionText() function in FilterPopoverNew.tsx from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 78f7247b_822e_6137_4be5_f032360cc7c9["toOptionText()"] 425168de_ac04_a481_fb88_566344b6619c["isOptionRecord()"] 78f7247b_822e_6137_4be5_f032360cc7c9 -->|calls| 425168de_ac04_a481_fb88_566344b6619c style 78f7247b_822e_6137_4be5_f032360cc7c9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/studio/components/grid/components/header/filter/FilterPopoverNew.tsx lines 91–103
const toOptionText = (option: OptionLike): string | null => {
if (typeof option === 'string') return option
if (!isOptionRecord(option)) return null
const value = 'value' in option ? option.value : undefined
const label = 'label' in option ? option.label : undefined
const hasValue = typeof value === 'string'
const hasLabel = typeof label === 'string'
if (hasValue && hasLabel) return value || label
if (hasLabel) return label
return null
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does toOptionText() do?
toOptionText() is a function in the supabase codebase.
What does toOptionText() call?
toOptionText() calls 1 function(s): isOptionRecord.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free