Skip to content

Commit 43bec68

Browse files
author
Bohdan Korablov
committed
MAGETWO-44116: JS bundling file size exceeded
1 parent 5cb3f83 commit 43bec68

File tree

1 file changed

+1
-1
lines changed
  • lib/internal/Magento/Framework/View/Asset

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/View/Asset/Bundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ protected function getPartIndex(LocalInterface $asset)
126126
$minIndex = -1;
127127
if ($maxPartSize && count($parts)) {
128128
foreach ($parts as $partIndex => $part) {
129-
$space = $maxPartSize - $this->getSizePartWithNewAsset($asset, $parts[$partIndex]['assets']);
129+
$space = $maxPartSize - $this->getSizePartWithNewAsset($asset, $part['assets']);
130130
if ($space >= 0 && $space < $minSpace) {
131131
$minSpace = $space;
132132
$minIndex = $partIndex;

0 commit comments

Comments
 (0)