asd
This commit is contained in:
@@ -34,7 +34,7 @@ async function openSnippetEditor(id){
|
|||||||
let resp = {};
|
let resp = {};
|
||||||
try { resp = await apiGet('snippets', id) || {}; } catch(e){}
|
try { resp = await apiGet('snippets', id) || {}; } catch(e){}
|
||||||
const row = resp?.item || resp?.data || resp || {};
|
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 (inpName) inpName.value = row.name || '';
|
||||||
if (taContent) taContent.value = contentValue;
|
if (taContent) taContent.value = contentValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user