We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5cb3f83 commit 43bec68Copy full SHA for 43bec68
lib/internal/Magento/Framework/View/Asset/Bundle.php
@@ -126,7 +126,7 @@ protected function getPartIndex(LocalInterface $asset)
126
$minIndex = -1;
127
if ($maxPartSize && count($parts)) {
128
foreach ($parts as $partIndex => $part) {
129
- $space = $maxPartSize - $this->getSizePartWithNewAsset($asset, $parts[$partIndex]['assets']);
+ $space = $maxPartSize - $this->getSizePartWithNewAsset($asset, $part['assets']);
130
if ($space >= 0 && $space < $minSpace) {
131
$minSpace = $space;
132
$minIndex = $partIndex;
0 commit comments