Small improvements

This commit is contained in:
Stefan Hardegger
2025-08-15 07:58:36 +02:00
parent 460ec358ca
commit 6b83783381
3 changed files with 31 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ export default function AddStoryPage() {
await storyApi.uploadCover(story.id, coverImage);
}
router.push(`/stories/${story.id}`);
router.push(`/stories/${story.id}/detail`);
} catch (error: any) {
console.error('Failed to create story:', error);
const errorMessage = error.response?.data?.message || 'Failed to create story';