mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
add default numbers for restore tool if one isn't provided: #594
This commit is contained in:
parent
db805b6388
commit
ac419e7813
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ module.exports.app = (appExports, model) ->
|
|||
batch = new BatchUpdate(model)
|
||||
batch.startTransaction()
|
||||
$('#restore-form input').each ->
|
||||
batch.set $(this).attr('data-for'), parseInt($(this).val())
|
||||
batch.set $(this).attr('data-for'), parseInt($(this).val() || 1)
|
||||
batch.commit()
|
||||
|
||||
user.on 'set', 'flags.customizationsNotification', (captures, args) ->
|
||||
|
|
|
|||
Loading…
Reference in a new issue