aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/api_items.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-01 02:21:42 -0400
committerhistoria <[not public]>2026-07-01 02:21:42 -0400
commit5f37dc9b6f6b79da04da70ae0c33ec8d02998587 (patch)
treef7c309e36267a4c456fcf5bca800e614507a80af /internal/admin/api_items.go
parentfee376102192dc6f24297a7b11324636ace3a07d (diff)
downloadthehouseoficarus-5f37dc9b6f6b79da04da70ae0c33ec8d02998587.tar.gz
feat: qol improvements to items crud in admin gui
Diffstat (limited to 'internal/admin/api_items.go')
-rw-r--r--internal/admin/api_items.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/admin/api_items.go b/internal/admin/api_items.go
index d5e707e..721a6f8 100644
--- a/internal/admin/api_items.go
+++ b/internal/admin/api_items.go
@@ -95,6 +95,7 @@ func (s *AdminServer) updateItem(w http.ResponseWriter, r *http.Request, id stri
http.Error(w, `{"error":"failed to write item"}`, http.StatusInternalServerError)
return
}
+ m["_raw"] = string(newContent)
s.undoStack.Push(ChangeDesc{
Description: fmt.Sprintf("Update item %s", id),