Browse Source

fix: Fix for redirected tab content to not show empty pages.

master
Denis Thiessen 5 months ago
parent
commit
2d505ebafe
  1. 3
      src/components/ScrollableTab.jsx

3
src/components/ScrollableTab.jsx

@ -36,7 +36,10 @@ function ScrollableTab({ onActiveTabChange, sonificationType, children }) {
if (actionType === "button") { if (actionType === "button") {
saveMouseLog(); saveMouseLog();
setActiveTab(0);
onActiveTabChange(0);
window.location.href = redirectLoc; window.location.href = redirectLoc;
return;
} }
setActiveTab(index); setActiveTab(index);
onActiveTabChange(index); onActiveTabChange(index);

Loading…
Cancel
Save