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 b7a2ee8 commit 1ed4717
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Resources/assets/admin/js/cms/cms-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ export class HandleTemplate {
$('[data-form-collection="add"]').trigger('click');
});

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

0 comments on commit 1ed4717

Please sign in to comment.