Skip to content

Commit

Permalink
Imported only lodash submodules (#2040)
Browse files Browse the repository at this point in the history
## Which problem is this PR solving?
- Part of #2032

## Description of the changes
- Port partial changes from #2023

## How was this change tested?
- CI

---------

Signed-off-by: MeenuyD <meenu.coninja@gmail.com>
Signed-off-by: Yuri Shkuro <github@ysh.us>
Co-authored-by: MeenuyD <meenu.coninja@gmail.com>
  • Loading branch information
yurishkuro and MeenuyD committed Dec 8, 2023
1 parent f65d74b commit b76514d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import React, { Component } from 'react';
import { InteractiveForceGraph, ForceGraphNode } from 'react-vis-force';
import { window } from 'global';
import { debounce } from 'lodash';
import _debounce from 'lodash/debounce';
import ForceGraphArrowLink from './ForceGraphArrowLink';

import { nodesPropTypes, linksPropTypes } from '../../propTypes/dependencies';
Expand All @@ -39,7 +39,7 @@ export default class DependencyForceGraph extends Component {

componentDidMount() {
this.onResize();
this.debouncedResize = debounce((...args) => this.onResize(...args), 50);
this.debouncedResize = _debounce((...args) => this.onResize(...args), 50);
window.addEventListener('resize', this.debouncedResize);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Col, Divider, Row, Tag } from 'antd';
import { LocationDescriptor } from 'history';
import { Link } from 'react-router-dom';

import { sortBy } from 'lodash';
import _sortBy from 'lodash/sortBy';
import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';

Expand Down Expand Up @@ -111,7 +111,7 @@ export default class ResultItem extends React.PureComponent<Props, State> {
</Col>
<Col span={16} className="ub-p2">
<ul className="ub-list-reset" data-test={markers.SERVICE_TAGS}>
{sortBy(services, s => s.name).map(service => {
{_sortBy(services, s => s.name).map(service => {
const { name, numberOfSpans: count } = service;
return (
<li key={name} className="ub-inline-block ub-m1">
Expand Down

0 comments on commit b76514d

Please sign in to comment.