fix: Guard EventEditorPage state initialization with loadedEventIdRef and key prop to prevent values resetting to defaults on edit

This commit is contained in:
Richard
2026-07-31 12:20:37 +02:00
parent c295471827
commit 1a880d3452
3 changed files with 65 additions and 55 deletions
+1
View File
@@ -490,6 +490,7 @@ export default function App() {
/>
) : activeTab === 'event-editor' ? (
<EventEditorPage
key={eventToEdit?.id || 'new-event'}
eventToEdit={eventToEdit}
skills={skills}
user={user}