diff --git a/templates/collections.templ b/templates/collections.templ
index e78b7c4..5f3854a 100644
--- a/templates/collections.templ
+++ b/templates/collections.templ
@@ -12,7 +12,7 @@ templ Collection(user User, collections []CollectionData, errorMessage string) {
-
+
@Header(user, "/collections")
diff --git a/templates/collections_templ.go b/templates/collections_templ.go
index 5e0d8f8..8fca02c 100644
--- a/templates/collections_templ.go
+++ b/templates/collections_templ.go
@@ -31,7 +31,7 @@ func Collection(user User, collections []CollectionData, errorMessage string) te
templ_7745c5c3_Var1 = templ.NopComponent
}
ctx = templ.ClearChildren(ctx)
- templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "
Collections - Bookhoard")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "Collections - Bookhoard")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
@@ -196,7 +196,7 @@ func CollectionDetail(user User, collection CollectionData, books []handlers.Boo
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
- templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, " - Bookhoard")
+ templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 15, " - Bookhoard")
if templ_7745c5c3_Err != nil {
return templ_7745c5c3_Err
}
diff --git a/web/src/collections.ts b/web/src/collections.ts
index 4ec8e7d..a72c897 100644
--- a/web/src/collections.ts
+++ b/web/src/collections.ts
@@ -302,8 +302,8 @@ function selectColor(color: string): void {
// Close modal (removes from DOM)
function closeCollectionModal(): void {
const modal = document.querySelector(".fixed.inset-0");
- if (modal && modal.parentElement) {
- modal.parentElement.remove();
+ if (modal) {
+ modal.remove();
}
}