diff --git a/public/assets/js/ui-list.js b/public/assets/js/ui-list.js index 03e0401..8fce648 100644 --- a/public/assets/js/ui-list.js +++ b/public/assets/js/ui-list.js @@ -34,7 +34,7 @@ async function openSnippetEditor(id){ let resp = {}; try { resp = await apiGet('snippets', id) || {}; } catch(e){} const row = resp?.item || resp?.data || resp || {}; - const contentValue = resp?.content ?? row.content ?? ''; + const contentValue = (row?.content ?? resp?.html ?? resp?.content ?? ''); if (inpName) inpName.value = row.name || ''; if (taContent) taContent.value = contentValue;