Skip to content

Commit

Permalink
Providers order fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzzzen committed Mar 10, 2019
1 parent 353c9ce commit d68ff04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/js/custom-components/providers-order.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = function(Mana) {
update: function(event, ui) {
if (ui.item.css('opacity') === '0.35') return $('#providersOrder').sortable('cancel');

let array = Array.from(document.querySelector('#providersOrder').children).filter(x => x.style.opacity === 1).map(x => x.id);
let array = Array.from(document.querySelector('#providersOrder').children).filter(x => x.style.opacity == 1).map(x => x.id);

Mana.getStore().set('providers-order', array);
console.log(2, '[Providers Order] Changed value to:', array);
Expand Down

0 comments on commit d68ff04

Please sign in to comment.