Skip to content

Commit

Permalink
Remove state selection
Browse files Browse the repository at this point in the history
This logic is already handled in timeline-chart. And validating states with id is incorrect. Hence removed it from this file.

Signed-off-by: muddana-satish <satish.muddana@ericsson.com>
  • Loading branch information
muddana-satish authored and tahini committed Oct 20, 2020
1 parent 65cfb85 commit 9d7f831
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,15 +228,6 @@ export class TimegraphOutputComponent extends AbstractTreeOutputComponent<Timegr
const newRange: TimelineChart.TimeGraphRange = { start, end };
const newResolution: number = resolution * 0.8;
const timeGraphData: TimelineChart.TimeGraphModel = await this.tspDataProvider.getData(orderedTreeIds, this.state.timegraphTree, newRange, this.props.style.chartWidth);
if (timeGraphData && this.selectedElement) {
for (const row of timeGraphData.rows) {
const selEl = row.states.find(el => !!this.selectedElement && el.id === this.selectedElement.id);
if (selEl) {
selEl.selected = true;
break;
}
}
}
return {
rows: timeGraphData ? timeGraphData.rows : [],
range: newRange,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13459,9 +13459,9 @@ timed-out@^4.0.0, timed-out@^4.0.1:
integrity sha1-8y6srFoXW+ol1/q1Zas+2HQe9W8=

timeline-chart@next:
version "0.2.0-next.924c35d7"
resolved "https://registry.yarnpkg.com/timeline-chart/-/timeline-chart-0.2.0-next.924c35d7.tgz#d08a9aa10fad1470ed2849fbc859304b0e74d797"
integrity sha512-rT4Rh2HXU+Tp7wekXoGeq+vP0z9pE8pjZ3yj2aSOYqcP4W9dMeTkUOrLAMTP/I2t35J+Q+gydFvvxoXJDmhkkw==
version "0.2.0-next.a0e2dfbe"
resolved "https://registry.yarnpkg.com/timeline-chart/-/timeline-chart-0.2.0-next.a0e2dfbe.tgz#00e3a5c40f54c47b6f0ca15a2f01f9a327e60588"
integrity sha512-K9jy/GtUfInEoYQIWW66xbllcLA0Co8KRP8T4MzX86F1L6ai8cin5Ln0d04TKRToNYGnZfPEY1WQn2mNwVSHuw==
dependencies:
"@types/lodash.throttle" "^4.1.4"
glob "^7.1.6"
Expand Down

0 comments on commit 9d7f831

Please sign in to comment.