I am loading list dynamically, but I cant set default value, my code looks like this, but it just don't render selected in else case. store._id and user.businessUnit._id are match in one of cases.
<select class="form-control " name="businessUnit" id="businessUnit">
<% if (!editing) {%>
<option value="" selected disabled hidden>Odaberi poslovnu jedinicu</option>
<% stores.forEach((store) => { %>
<option value="<%=store._id%>"><%=store.name%></option>
<% }); %>
<% } else { %>
<% stores.forEach((store) => { %>
<option value="<%=store._id%>" <% if (user.businessUnit._id === store._id) { %> <%= "selected" %> <% } %>><%=store.name%></option>
<% }); %>
<% } %>
</select>