Spaces:
Running
Running
axeronis commited on
Commit ·
d6508aa
1
Parent(s): 88e5a40
fix: editingEntry null safety
Browse files
frontend/app/settings/brain/page.tsx
CHANGED
|
@@ -647,8 +647,8 @@ export default function BrainSettingsPage() {
|
|
| 647 |
// Inline editing mode
|
| 648 |
<div className="space-y-3">
|
| 649 |
<textarea
|
| 650 |
-
value={editingEntry.content}
|
| 651 |
-
onChange={(e) => setEditingEntry({ ...editingEntry, content: e.target.value })}
|
| 652 |
className="w-full min-h-[150px] p-3 bg-surface border border-white/10 rounded-lg text-sm text-white placeholder:text-slate-500 focus:ring-2 focus:ring-indigo-500/30 focus:border-indigo-500 transition-all resize-y"
|
| 653 |
placeholder="Редактируйте текст..."
|
| 654 |
autoFocus
|
|
|
|
| 647 |
// Inline editing mode
|
| 648 |
<div className="space-y-3">
|
| 649 |
<textarea
|
| 650 |
+
value={editingEntry?.content ?? ''}
|
| 651 |
+
onChange={(e) => editingEntry && setEditingEntry({ ...editingEntry, content: e.target.value })}
|
| 652 |
className="w-full min-h-[150px] p-3 bg-surface border border-white/10 rounded-lg text-sm text-white placeholder:text-slate-500 focus:ring-2 focus:ring-indigo-500/30 focus:border-indigo-500 transition-all resize-y"
|
| 653 |
placeholder="Редактируйте текст..."
|
| 654 |
autoFocus
|