This commit is contained in:
@@ -146,7 +146,9 @@ export function SkillsForm() {
|
||||
|
||||
const handleStartEdit = () => {
|
||||
if (detailQuery.data) {
|
||||
setEditContent(detailQuery.data.content);
|
||||
// Edit the FULL file (frontmatter + body). Loading body-only `content`
|
||||
// and saving it back drops the frontmatter and deletes the skill.
|
||||
setEditContent(detailQuery.data.raw);
|
||||
setEditMode(true);
|
||||
setError(null);
|
||||
}
|
||||
@@ -370,7 +372,7 @@ export function SkillsForm() {
|
||||
</div>
|
||||
) : (
|
||||
<pre className="whitespace-pre-wrap text-xs font-mono text-slate-700 bg-surface/50 border border-hairline rounded p-3 max-h-[400px] overflow-y-auto">
|
||||
{detailQuery.data.content}
|
||||
{detailQuery.data.raw}
|
||||
</pre>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user