This commit is contained in:
2025-12-07 02:01:31 +01:00
parent c6c452e582
commit 91abb8812b

View File

@@ -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;