diff options
author | Sunil Shetye | 2025-06-24 00:28:30 +0530 |
---|---|---|
committer | Sunil Shetye | 2025-06-24 00:28:30 +0530 |
commit | d12d5dbc868098c2ac46350923ecd7f999af0f42 (patch) | |
tree | dd0aaf6456a3bd131c59226b0510be0251248b35 | |
parent | b16f4014f2b11311843e6287e5050f576c8a08df (diff) | |
download | Common-Interface-Project-d12d5dbc868098c2ac46350923ecd7f999af0f42.tar.gz Common-Interface-Project-d12d5dbc868098c2ac46350923ecd7f999af0f42.tar.bz2 Common-Interface-Project-d12d5dbc868098c2ac46350923ecd7f999af0f42.zip |
require braces for function call
-rw-r--r-- | blocks/eda-frontend/src/App.js | 8 | ||||
-rw-r--r-- | blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js | 4 |
2 files changed, 9 insertions, 3 deletions
diff --git a/blocks/eda-frontend/src/App.js b/blocks/eda-frontend/src/App.js index 1407d274..6c0eb017 100644 --- a/blocks/eda-frontend/src/App.js +++ b/blocks/eda-frontend/src/App.js @@ -23,7 +23,9 @@ const PrivateRoute = ({ component: Component, ...rest }) => { const isLoading = useSelector(state => state.auth.isLoading) const dispatch = useDispatch() - useEffect(() => dispatch(loadUser()), [dispatch]) + useEffect(() => { + dispatch(loadUser()) + }, [dispatch]) return ( <Route @@ -50,7 +52,9 @@ const PublicRoute = ({ component: Component, restricted, nav, ...rest }) => { const isLoading = useSelector(state => state.auth.isLoading) const dispatch = useDispatch() - useEffect(() => dispatch(loadUser()), [dispatch]) + useEffect(() => { + dispatch(loadUser()) + }, [dispatch]) return ( <Route diff --git a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js index f6fe47e5..0159e158 100644 --- a/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js +++ b/blocks/eda-frontend/src/components/SchematicEditor/SimulationScreen.js @@ -674,7 +674,9 @@ export default function SimulationScreen ({ open, close }) { simulationResult(getUrl, getStreamingUrl, 2000) }, [dispatch, isResult, simulationResult]) - useEffect(() => getSimulationResult(taskId), [taskId, getSimulationResult]) + useEffect(() => { + getSimulationResult(taskId) + }, [taskId, getSimulationResult]) useEffect(() => { for (let i = 0; i < Highcharts.charts.length; i++) { |