Skip to content

Commit 425d7f4

Browse files
committed
Deployment fix
1 parent b52daa7 commit 425d7f4

2 files changed

Lines changed: 10 additions & 9 deletions

File tree

src/GraphArea.jsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ function Graph({
2828
myGraph.setCurStatus();
2929
return myGraph;
3030
};
31-
useEffect(() => {
32-
if (active && loaded && serverID) {
33-
window.history.pushState(null, null, path.join(process.env.PUBLIC_URL, 's', serverID));
34-
} else if (active && loaded && graphID) {
35-
window.history.pushState(null, null, path.join(process.env.PUBLIC_URL, 'l', graphID));
36-
}
37-
}, [active, serverID, loaded, graphID]);
31+
// Remote server implementation - Not being used.
32+
// useEffect(() => {
33+
// if (active && loaded && serverID) {
34+
// window.history.pushState(null, null, path.join(process.env.PUBLIC_URL, 's', serverID));
35+
// } else if (active && loaded && graphID) {
36+
// window.history.pushState(null, null, path.join(process.env.PUBLIC_URL, 'l', graphID));
37+
// }
38+
// }, [active, serverID, loaded, graphID]);
3839
useEffect(() => instance && instance.set({ superState }), [instance, superState]);
3940
useEffect(() => active && instance && instance.setCurStatus(), [active && instance]);
4041
useEffect(() => {

src/component/Header.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
ActionButton, Vsep, Hsep, Space, TextBox, Switcher, DropDown, FileUploader,
99
} from './HeaderComps';
1010
import 'rc-switch/assets/index.css';
11-
import ServerActions from './serverActions/ServerActions';
11+
// import ServerActions from './serverActions/ServerActions';
1212

1313
const setHotKeys = (actions) => {
1414
let keys = '';
@@ -65,7 +65,7 @@ const Header = ({ superState, dispatcher }) => {
6565
case 'menu': return <DropDown {...props} />;
6666
case 'file-upload': return <FileUploader {...props} superState={superState} />;
6767
case 'action': return <ActionButton {...props} />;
68-
case 'serverActions': return <ServerActions superState={superState} />;
68+
// case 'serverActions': return <ServerActions superState={superState} />;
6969
default: return <></>;
7070
}
7171
})

0 commit comments

Comments
 (0)