documentation update
This commit is contained in:
@@ -302,14 +302,16 @@ function ChatInput({ value, onChange, onSend, placeholder, autoFocus }) {
|
||||
|
||||
function NotesSection({ projectId, initialNotes }) {
|
||||
const [notes, setNotes] = useState(initialNotes);
|
||||
const [savedNotes, setSavedNotes] = useState(initialNotes);
|
||||
const [saving, setSaving] = useState(false);
|
||||
|
||||
const isDirty = notes !== initialNotes;
|
||||
const isDirty = notes !== savedNotes;
|
||||
|
||||
async function handleSave() {
|
||||
setSaving(true);
|
||||
try {
|
||||
await updateProject(projectId, { notes });
|
||||
setSavedNotes(notes);
|
||||
} catch (err) {
|
||||
console.error('[NotesSection] Save failed:', err.message);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user