Fix productsPerRow select reset to 1

When settings page are loaded, select doesn't reflect value of
config.productsPerRow and resets to 1. Following settings update
saves that value.
react_convert
arings 2018-01-27 20:46:21 +01:00
parent 6297639688
commit bcabb11bc1
1 changed files with 2 additions and 1 deletions

View File

@ -66,6 +66,7 @@
<div class="form-group">
<label>Products per row</label>
<select class="form-control" name="productsPerRow">
<option value="{{config.productsPerRow}}" hidden="hidden" selected="selected">{{config.productsPerRow}}</option>
<option {{selectState '1' config.productsPerRow}}>1</option>
<option {{selectState '2' config.productsPerRow}}>2</option>
<option {{selectState '3' config.productsPerRow}}>3</option>