commit before hard reset to change connection
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user