Skip to content

Commit 4b8cecb

Browse files
committed
merge
1 parent 5f124d9 commit 4b8cecb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/components/StateRoute.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const StateRoute = ({ snapshot, hierarchy }) => {
3030
return <div className="noState">{NO_STATE_MSG}</div>;
3131
};
3232

33-
// gabi :: the snapshot get set on the first click in the page, when page in refreshed we don't have a hierarchy so we need to check if snapshot was initialize involk render chart
33+
// gabi :: the hierarchy get set on the first click in the page, when page in refreshed we don't have a hierarchy so we need to check if snapshot was initialize involk render chart
3434
const renderTree = () => {
3535
if (hierarchy) {
3636
return <Tree snapshot={snapshot} />;
@@ -39,7 +39,7 @@ const StateRoute = ({ snapshot, hierarchy }) => {
3939
};
4040

4141
const renderPerfView = () => {
42-
if (snapshot) {
42+
if (hierarchy) {
4343
return <PerfView width={600} height={600} />; // ref={windowRef}
4444
}
4545
return <div className="noState">{NO_STATE_MSG}</div>;

0 commit comments

Comments
 (0)