MCPcopy Create free account
hub / github.com/bytebase/bytebase / getLabelForValue

Function getLabelForValue

frontend/src/react/components/ExprEditor.tsx:748–749  ·  view source on GitHub ↗
(v: string)

Source from the content-addressed store, hash-verified

746 const anySelected = value.length > 0;
747
748 const getLabelForValue = (v: string) =>
749 options.find((o) => o.value === v)?.label ?? v;
750
751 const toggleValue = (v: string) => {
752 if (value.includes(v)) {

Callers 2

MultiSearchableSelectFunction · 0.85
MultiCheckSelectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected