feat: Refactor event data handling and API integration; update variable names for consistency and clarity

This commit is contained in:
2025-04-25 13:47:46 +05:30
parent c0e0bcb69d
commit a1a1eacb79
15 changed files with 245 additions and 188 deletions

View File

@@ -37,7 +37,7 @@ const SideBarRight: React.FC = () => {
useEffect(() => {
if (activeModule !== "mechanics" && selectedEventData && selectedEventSphere) {
setSubModule("mechanics");
} else {
} else if (!selectedEventData && !selectedEventSphere) {
if (activeModule === 'simulation') {
setSubModule("simulations");
}