commit before hard reset to change connection

This commit is contained in:
2026-02-15 23:15:56 +01:00
parent be5bd2b2bf
commit af9d69cc78
6 changed files with 383 additions and 154 deletions

View File

@@ -118,8 +118,13 @@ const AppRouter: React.FC<AppRouterProps> = (props) => {
onChapterSelect={(id) => { setCurrentChapterId(id); props.onViewModeChange('write'); }}
onUpdateProject={props.onUpdateProject}
onAddChapter={async () => {
console.log("[AppRouter] onAddChapter triggered");
const id = await props.onAddChapter();
if (id) setCurrentChapterId(id);
console.log("[AppRouter] onAddChapter result ID:", id);
if (id) {
setCurrentChapterId(id);
props.onViewModeChange('write');
}
}}
onDeleteChapter={(id) => {
if (project.chapters.length > 1) {