fixes user edit modal for null values

This commit is contained in:
nai-degen 2023-09-18 23:42:08 -05:00
parent 624973fc82
commit ef554f8e06
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@
<form style="display:none" id="current-values">
<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] %>" />
<% }); %>
</form>