Skip to content

Commit

Permalink
tryin to focus on the first failed item sorry-cypress#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Das, Asish [ITSUS non J&J] committed Jun 15, 2022
1 parent 05a3a30 commit cd2165f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/dashboard/src/instance/instanceDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export const InstanceDetails: InstanceDetailsComponent = (props) => {
}
};

useEffect(() => {
setExpanded(nodeIds);
}, nodeIds);

useEffect(() => {
if (selectedItem === 'RECORDED_VIDEO') {
setSelected({
Expand All @@ -102,10 +106,6 @@ export const InstanceDetails: InstanceDetailsComponent = (props) => {
}
}, [selectedItem]);

useEffect(() => {
setExpanded(nodeIds);
}, nodeIds);

const handleToggleNavigationPanel = () => {
if (showNavigationPanel) {
setCollapseExitAnimationFinished(false);
Expand Down

0 comments on commit cd2165f

Please sign in to comment.