Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix: render null when nothing is returned in hashrouter

thecodrr647952284157
diff --git a/apps/web/src/components/hash-router/index.js b/apps/web/src/components/hash-router/index.js
index 7fb3ca586..de6a6fda6 100644
--- a/apps/web/src/components/hash-router/index.js
+++ b/apps/web/src/components/hash-router/index.js
@@ -1,10 +1,8 @@
-import React from "react";
import useHashRoutes from "../../utils/use-hash-routes";
import hashroutes from "../../navigation/hash-routes";
-import EditorPlaceholder from "../editor/-placeholder";
function HashRouter() {
const routeResult = useHashRoutes(hashroutes);
- return routeResult || <EditorPlaceholder />;
+ return routeResult || null;
}
export default HashRouter;