Skip to content

Commit

Permalink
fixing selected list dropdown value
Browse files Browse the repository at this point in the history
  • Loading branch information
jtkabenni committed Apr 5, 2024
1 parent 7d0d330 commit e1fa143
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/SelectListForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default function SelectListForm({
setListPath,
listName,
}) {
console.log(data, areListsLoading, setListPath, listName);
const initialListState = listName ? listName : 'Select a list';
const [selectedList, setSelectedList] = useState(initialListState);
const navigate = useNavigate();
Expand All @@ -30,6 +31,7 @@ export default function SelectListForm({
value={selectedList}
onChange={handleSelectChange}
>
<option>{selectedList}</option>
{data.map((data) => {
return (
<option key={data.path} value={data.path}>
Expand Down

0 comments on commit e1fa143

Please sign in to comment.