Browse Source

SONAR-10397 Fix inconsistent list of files in "Code" tab with +100 files

tags/7.5
Pascal Mugnier 6 years ago
parent
commit
bfbc7ac733
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      server/sonar-web/src/main/js/apps/code/bucket.ts

+ 5
- 0
server/sonar-web/src/main/js/apps/code/bucket.ts View File

@@ -17,6 +17,7 @@
* along with this program; if not, write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import { concat } from 'lodash';
import { Breadcrumb, Component } from './types';

let bucket: { [key: string]: Component } = {};
@@ -43,6 +44,10 @@ export function addComponentChildren(
total: number,
page: number
): void {
const previous = getComponentChildren(componentKey);
if (previous) {
children = concat(children, previous.children);
}
childrenBucket[componentKey] = { children, total, page };
}


Loading…
Cancel
Save