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

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

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

0 comments on commit b7a2ee8

Please sign in to comment.