Skip to content

Commit

Permalink
[CatalogPromotion][UI] Fix changing type of scope
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Nov 25, 2021
1 parent 0f8f81f commit 50c9270
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Sylius/Bundle/AdminBundle/Resources/private/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ $(document).ready(() => {
}
});

$(document).loadCatalogPromotionActionConfiguration(
document.querySelector('#sylius_catalog_promotion_actions [data-form-collection="item"]:last-child')
);

$(document).loadCatalogPromotionScopeConfiguration(
document.querySelector('#sylius_catalog_promotion_scopes [data-form-collection="item"]:last-child')
);

$(document).loadCatalogPromotionActionConfiguration(
document.querySelector('#sylius_catalog_promotion_actions [data-form-collection="item"]:last-child')
);
});
$(document).on('collection-form-update', () => {
$('.sylius-autocomplete').each((index, element) => {
Expand Down

0 comments on commit 50c9270

Please sign in to comment.