Skip to content

Commit 01ef988

Browse files
committed
#39640: Issue with the Customizable Options grid on the product page in the admin panel
- fixed "var" declaration in method
1 parent 8b59433 commit 01ef988

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/code/Magento/Ui/view/base/web/js/dynamic-rows/dynamic-rows.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,13 @@ define([
689689
* @param {Number|String} prop - additional property to element
690690
*/
691691
processingAddChild: function (ctx, index, prop) {
692+
var newTotal,
693+
newPages;
694+
692695
this.bubble('addChild', false);
693696

694-
var newTotal = this.relatedData.length + 1;
695-
var newPages = Math.ceil(newTotal / this.pageSize);
697+
newTotal = this.relatedData.length + 1;
698+
newPages = Math.ceil(newTotal / this.pageSize);
696699

697700
this.pages(newPages);
698701
this.currentPage(newPages);

0 commit comments

Comments
 (0)