Skip to content

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

fix: cannot read property of undefined ('replaceAll')

thecodrread442603078
diff --git a/apps/web/src/components/icons/resolver.js b/apps/web/src/components/icons/resolver.js
index 86eb8c12f..efd5c8ee9 100644
--- a/apps/web/src/components/icons/resolver.js
+++ b/apps/web/src/components/icons/resolver.js
@@ -2,6 +2,8 @@ const { toTitleCase, toCamelCase } = require("../../utils/string");
var icons = undefined;
export function getIconFromAlias(alias) {
+ if (!alias) return;
+
const iconName = toTitleCase(toCamelCase(alias));
if (!icons) icons = require("./index");
return icons[iconName];