Skip to content

Commit

Permalink
testing some idea
Browse files Browse the repository at this point in the history
  • Loading branch information
katemat committed Jul 16, 2020
1 parent dd8f9f4 commit 2b61c8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions views/edit-item.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@
<% const types = ["Furniture", "Book", "Food", "Ticket", "Others"]
%> <% types.forEach((option, index) => { %> <% if
((item[0].item_type) == option) { %>
<option value="<%= option %>" <%="selected" %
>><%= option %></option
>
<option value="<%= option %>" <%="selected" %>
<%= option %>>
</option>
<% } else { %>
<option value="<%= option %>"><%= option %></option>
<option value="<%= option %>"> <%= option %></option>
<% } %> <% }) %>
</select>
</div>
Expand Down

0 comments on commit 2b61c8a

Please sign in to comment.