Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
select one option updated
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vamshi committed Oct 16, 2022
1 parent cf90141 commit 0f78bca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/screens/CreateProductScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const CreateProductScreen = ({ history }) => {
setCategory(e.target.value);
}}
>
<option>--Select One--</option>
<option value="">--Select One--</option>
{
categories && categories.map((category)=>{
return <option key={category._id} value={category.name}>{Capitalizer(category.name)}</option>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/screens/ProductEditScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ const ProductEditScreen = ({ match, history }) => {
setCategory(e.target.value);
}}
>
<option>--Select One--</option>
{
categories && categories.map((category)=>{
return <option key={category._id} value={category.name}>{Capitalizer(category.name)}</option>
Expand Down

0 comments on commit 0f78bca

Please sign in to comment.