Skip to content

Commit

Permalink
Debugging behats
Browse files Browse the repository at this point in the history
  • Loading branch information
senghe committed Sep 5, 2024
1 parent 6c09b11 commit fa190ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Resources/assets/admin/js/cms/cms-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ export class HandleTemplate {
});

const elements = $('.bb-collection-item');
console.log(elements);

$.each(data.content, function (index, element) {
elements.eq(index).find('select:first').val(element.type);
elements.eq(index).find('select:first').change();
setTimeout(() => {
elements.eq(index).find('select:first').val(element.type);
elements.eq(index).find('select:first').change();
}, 500);
});
} else {
console.error(data.message);
Expand Down

0 comments on commit fa190ca

Please sign in to comment.