editing a story goes to detail view
This commit is contained in:
@@ -192,7 +192,7 @@ export default function EditStoryPage() {
|
||||
await storyApi.uploadCover(storyId, coverImage);
|
||||
}
|
||||
|
||||
router.push(`/stories/${storyId}`);
|
||||
router.push(`/stories/${storyId}/detail`);
|
||||
} catch (error: any) {
|
||||
console.error('Failed to update story:', error);
|
||||
const errorMessage = error.response?.data?.message || 'Failed to update story';
|
||||
|
||||
Reference in New Issue
Block a user