Skip to content

Commit 020b2b7

Browse files
committed
cleaned up code in ActionContainer/ StateRoute
1 parent 26d9aed commit 020b2b7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/app/components/StateRoute.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ const StateRoute = (props: StateRouteProps) => {
6363

6464
// the hierarchy gets set upon the first click on the page
6565
// when the page is refreshed we may not have a hierarchy, so we need to check if hierarchy was initialized
66-
// if true, we invoke teh D3 render chart with hierarchy
66+
// if true, we invoke the D3 render chart with hierarchy
6767
// by invoking History component, and passing in all the props required to render D3 elements and perform timeJump from clicking of node
68-
// otherwise we an alert to the user that no state was found.
68+
// otherwise we send an alert to the user that no state was found.
6969
const renderHistory = () => {
7070
if (hierarchy) {
7171
return (

src/app/containers/ActionContainer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const resetSlider = () => {
2222
function ActionContainer(props): JSX.Element {
2323
const [{ tabs, currentTab, port }, dispatch] = useStoreContext();
2424
const {
25-
currLocation, hierarchy, sliderIndex, viewIndex, snapshots,
25+
currLocation, hierarchy, sliderIndex, viewIndex,
2626
} = tabs[currentTab];
2727
const {
2828
toggleActionContainer, actionView, setActionView,
@@ -52,8 +52,6 @@ function ActionContainer(props): JSX.Element {
5252
state: obj.stateSnapshot.children[0].state,
5353
componentName: obj.stateSnapshot.children[0].name,
5454
routePath: obj.stateSnapshot.route.url,
55-
// nathan testing new entries for component name, original above
56-
// componentName: findDiff(obj.index),
5755
componentData:
5856
JSON.stringify(obj.stateSnapshot.children[0].componentData) === '{}'
5957
? ''

0 commit comments

Comments
 (0)