diff --git a/app/javascript/alchemy_admin/components/icon.js b/app/javascript/alchemy_admin/components/icon.js
index 10b26b837c..f5a45a83ad 100644
--- a/app/javascript/alchemy_admin/components/icon.js
+++ b/app/javascript/alchemy_admin/components/icon.js
@@ -20,7 +20,7 @@ class Icon extends HTMLElement {
render() {
const sizeClass = this.size ? ` icon--${this.size}` : ""
- this.innerHTML = ``
+ this.innerHTML = ``
}
set name(value) {
diff --git a/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb b/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
index c368824e3e..621fbbbce1 100644
--- a/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
+++ b/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb
@@ -6,8 +6,9 @@
<% elsif navigation["inline_image"] %>
<%== navigation["inline_image"] %>
<% elsif navigation["icon"] %>
+ <%# Cannot use the render_icon helper, because the navigation["icon"] includes the style %>
<% else %>
<%= render_icon :table %>
diff --git a/spec/javascript/alchemy_admin/components/icon.spec.js b/spec/javascript/alchemy_admin/components/icon.spec.js
index 193d50dba6..0f563eb115 100644
--- a/spec/javascript/alchemy_admin/components/icon.spec.js
+++ b/spec/javascript/alchemy_admin/components/icon.spec.js
@@ -10,7 +10,7 @@ describe("alchemy-icon", () => {
const icon = renderComponent("alchemy-icon", html)
expect(icon.innerHTML).toEqual(
- ''
+ ''
)
})
@@ -22,7 +22,7 @@ describe("alchemy-icon", () => {
const icon = renderComponent("alchemy-icon", html)
expect(icon.innerHTML).toEqual(
- ''
+ ''
)
})
@@ -34,7 +34,7 @@ describe("alchemy-icon", () => {
const icon = renderComponent("alchemy-icon", html)
expect(icon.innerHTML).toEqual(
- ''
+ ''
)
})
@@ -46,7 +46,7 @@ describe("alchemy-icon", () => {
const icon = renderComponent("alchemy-icon", html)
expect(icon.innerHTML).toEqual(
- ''
+ ''
)
})
})