fix: persist property-only frontmatter edits

This commit is contained in:
lucaronin
2026-05-23 18:12:58 +02:00
parent 2a3ecf7270
commit ae529f64cd
3 changed files with 44 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import { useCallback, useEffect, useRef, type MutableRefObject } from 'react'
import type { VaultEntry } from '../types'
import type { FrontmatterValue } from '../components/Inspector'
import { useTabManagement } from './useTabManagement'
import { cacheNoteContent, useTabManagement } from './useTabManagement'
import {
GITIGNORED_VISIBILITY_APPLIED_EVENT,
type GitignoredVisibilityAppliedEvent,
@@ -474,6 +474,7 @@ function useFrontmatterRunner({
key,
value,
callbacks: {
cacheContent: cacheNoteContent,
updateTab: updateTabContent,
updateEntry,
toast: setToastMessage,