fixes user edit modal for null values
This commit is contained in:
parent
624973fc82
commit
ef554f8e06
|
@ -90,7 +90,7 @@
|
||||||
|
|
||||||
<form style="display:none" id="current-values">
|
<form style="display:none" id="current-values">
|
||||||
<input type="hidden" name="token" value="<%- user.token %>" />
|
<input type="hidden" name="token" value="<%- user.token %>" />
|
||||||
<% Object.keys(user).forEach(function (key) { %>
|
<% ["nickname", "type", "disabledAt", "disabledReason", "maxIps", "adminNote"].forEach(function (key) { %>
|
||||||
<input type="hidden" name="<%- key %>" value="<%- user[key] %>" />
|
<input type="hidden" name="<%- key %>" value="<%- user[key] %>" />
|
||||||
<% }); %>
|
<% }); %>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue