From c5b2a0fac17de702c3ab8c16ff565f33fe2bc792 Mon Sep 17 00:00:00 2001 From: Paul Briscoe Date: Fri, 27 Oct 2017 16:51:09 -0400 Subject: [PATCH] MAGETWO-70954: Remove the component.clear from the custom options type. This causes the 'elem' array to become out of sync with the recordData in the function mentioned in the comment above. Issue: 10291 --- .../Catalog/view/adminhtml/web/js/custom-options-type.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/code/Magento/Catalog/view/adminhtml/web/js/custom-options-type.js b/app/code/Magento/Catalog/view/adminhtml/web/js/custom-options-type.js index b46d09a7323b1..353c28d0c9421 100644 --- a/app/code/Magento/Catalog/view/adminhtml/web/js/custom-options-type.js +++ b/app/code/Magento/Catalog/view/adminhtml/web/js/custom-options-type.js @@ -103,11 +103,6 @@ define([ if (component) { component.visible(visible); - - /*eslint-disable max-depth */ - if (_.isFunction(component.clear)) { - component.clear(); - } } } }, this);