diff --git a/twenty-frontend/src/html/react.html.erb b/twenty-frontend/src/html/react.html.erb index d73504d..93d07ac 100644 --- a/twenty-frontend/src/html/react.html.erb +++ b/twenty-frontend/src/html/react.html.erb @@ -7,7 +7,7 @@ -
+
diff --git a/twenty-frontend/src/js/main/projects.tsx b/twenty-frontend/src/js/main/projects.tsx index baad580..a2565e2 100644 --- a/twenty-frontend/src/js/main/projects.tsx +++ b/twenty-frontend/src/js/main/projects.tsx @@ -4,7 +4,7 @@ import { Projects } from "/components/Projects"; import { ApolloProvider, ApolloClient, InMemoryCache } from "@apollo/client"; (function () { - const root = document.querySelector(".react-mount")!; + const root = document.querySelector(".react-root")!; const client = new ApolloClient({ uri: "/servlet/graphql", cache: new InMemoryCache(), diff --git a/twenty-frontend/src/js/main/task/edit.tsx b/twenty-frontend/src/js/main/task/edit.tsx index c9c5fe5..d731475 100644 --- a/twenty-frontend/src/js/main/task/edit.tsx +++ b/twenty-frontend/src/js/main/task/edit.tsx @@ -15,7 +15,7 @@ import { ApolloClient, InMemoryCache } from "@apollo/client"; uri: "/servlet/graphql", cache: new InMemoryCache(), }); - const root = document.querySelector(".react-mount")!; + const root = document.querySelector(".react-root")!; ReactDOM.createRoot(root).render( diff --git a/twenty-frontend/src/js/main/task/new.tsx b/twenty-frontend/src/js/main/task/new.tsx index c355302..a7b636f 100644 --- a/twenty-frontend/src/js/main/task/new.tsx +++ b/twenty-frontend/src/js/main/task/new.tsx @@ -4,7 +4,7 @@ import { Task } from "/components/Task"; import { ApolloClient, ApolloProvider, InMemoryCache } from "@apollo/client"; (function () { - const root = document.querySelector(".react-mount")!; + const root = document.querySelector(".react-root")!; const client = new ApolloClient({ uri: "/servlet/graphql", cache: new InMemoryCache(), diff --git a/twenty-frontend/src/js/main/tasks.tsx b/twenty-frontend/src/js/main/tasks.tsx index bb85f45..ddfde31 100644 --- a/twenty-frontend/src/js/main/tasks.tsx +++ b/twenty-frontend/src/js/main/tasks.tsx @@ -4,7 +4,7 @@ import ReactDOM from "react-dom/client"; import { Tasks } from "/components/Tasks"; (function () { - const root = document.querySelector(".react-mount")!; + const root = document.querySelector(".react-root")!; const client = new ApolloClient({ uri: "/servlet/graphql", cache: new InMemoryCache(),