diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index 32b50161..623aafc7 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -161,8 +161,6 @@ class Detail extends Component {
}
getProject = (num) => {
- const name = window.location.hostname === "localhost" ? "testforgeplus.trustie.net":window.location.hostname;
- console.log(`wss:${name}/cable`);
const { projectsId } = this.props.match.params;
const url = `/projects/${projectsId}/simple.json`;
axios.get(url).then((result) => {
@@ -197,9 +195,8 @@ class Detail extends Component {
}
canvasChannel = () => {
const name = window.location.hostname === "localhost" ? "http://testforgeplus.trustie.net":window.location.hostname;
- console.log(`wss:${name}/cable`);
const actioncable = require("actioncable")
- var project = this.state.project
+ var project = this.state.project;
var cable = actioncable.createConsumer(`wss:${name}/cable`);
this.canvasChannel1 = cable.subscriptions.create({
channel: `MirrorProjectChannel`,
@@ -381,10 +378,14 @@ class Detail extends Component {
: ""
}
{
- projectDetail && checkLogin && projectDetail.type && projectDetail.type === 2 ?
-
-
- : ""
+ projectDetail && checkLogin && projectDetail.type && projectDetail.type !== 0 ?
+ projectDetail.type === 2 ?
+
+
+ :
+
+
+ :""
}