Skip to content

Commit

Permalink
[fix] datalistの追加判定を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
TkymHrt committed Nov 21, 2023
1 parent 4e8efc8 commit 946c425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/next-project/src/components/common/Input/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function Input(props: Props): JSX.Element {
>
{props.children}
</input>
{props.datalist?.key && props.datalist?.data && (
{props.datalist && (
<datalist id={props.datalist.key}>
{props.datalist.data.map((option) => (
<option key={option.id} value={option.name} />
Expand Down

0 comments on commit 946c425

Please sign in to comment.