You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,7 +26,7 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
26
26
constdispatch=useDispatch();
27
27
const{ currentTab, tabs, port }: MainState=useSelector((state: RootState)=>state.main);
28
28
29
-
const{ currLocation, hierarchy, sliderIndex, viewIndex }=tabs[currentTab];// we destructure the currentTab object
29
+
const{ currLocation, hierarchy, sliderIndex, viewIndex }: Partial<CurrentTab>=tabs[currentTab];// we destructure the currentTab object
30
30
const{
31
31
toggleActionContainer,// function that handles Time Jump Sidebar view from MainContainer
32
32
actionView,// local state declared in MainContainer
@@ -89,7 +89,7 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
89
89
if(hierarchy)displayArray(hierarchy);// when page is refreshed we may not have a hierarchy so we need to check if hierarchy was initialized. If it was initialized, invoke displayArray to display the hierarchy
90
90
91
91
// This function allows us to use our arrow keys to jump between snapshots. It passes an event and the index of each action-component. Using the arrow keys allows us to highligh snapshots and the enter key jumps to the selected snapshot
0 commit comments