Skip to content

Commit

Permalink
fix(GoalParentComboBox): check value to get right button text
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogradov committed Feb 28, 2023
1 parent f76868f commit f28fcdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/GoalParentComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const fetcher = createFetcher((_, query: string) => ({
},
{
id: true,
key: true,
title: true,
description: true,
flowId: true,
Expand Down Expand Up @@ -110,7 +111,7 @@ export const GoalParentComboBox = React.forwardRef<HTMLDivElement, GoalParentCom
return (
<ComboBox
ref={ref}
text={`#${value?.key}` || text}
text={value ? `#${value?.key}` : text}
value={inputState}
visible={completionVisible}
error={error}
Expand Down

0 comments on commit f28fcdc

Please sign in to comment.