Skip to content

Commit

Permalink
fix: multiple sorted-lists do not save to the correct set
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Jan 29, 2021
1 parent 6c3b1fd commit 4029ec3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion public/src/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,9 @@ define('settings', function () {
helper.whenReady(function () {
var list = formEl.find('[data-sorted-list]');
if (list.length) {
getHook(list, 'set').call(Settings, list, values);
list.each((idx, item) => {
getHook(item, 'set').call(Settings, $(item), values);
});
}
});

Expand Down
1 change: 0 additions & 1 deletion public/src/modules/settings/sorted-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ define('settings/sorted-list', [
function setupRemoveButton($container, itemUUID) {
var removeBtn = $container.find('[data-sorted-list-uuid="' + itemUUID + '"] [data-type="remove"]');
removeBtn.on('click', function () {
console.log(itemUUID);
$('[data-sorted-list-uuid="' + itemUUID + '"]').remove();
});
}
Expand Down

0 comments on commit 4029ec3

Please sign in to comment.