Merge branch 'fe/fixReplace' into 'frontend'
[Front-end] 삭제 후 되돌아가기 누를때 삭제 적용 안되는 버그 수정 See merge request s11-webmobile1-sub2/S11P12A701!202
This commit is contained in:
commit
833a87a470
@ -13,7 +13,7 @@ export default function FreeboardDetailPage() {
|
|||||||
|
|
||||||
const handleDelete = async () => {
|
const handleDelete = async () => {
|
||||||
await freeboardDelete(freeboardId);
|
await freeboardDelete(freeboardId);
|
||||||
navigate('..');
|
navigate('..', { replace: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -13,7 +13,7 @@ export default function NoticeDetailPage() {
|
|||||||
|
|
||||||
const handleDelete = async () => {
|
const handleDelete = async () => {
|
||||||
await noticeDelete(noticeId);
|
await noticeDelete(noticeId);
|
||||||
navigate('..');
|
navigate('..', { replace: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -13,7 +13,7 @@ export default function QuestionDetailPage() {
|
|||||||
|
|
||||||
const handleDelete = async () => {
|
const handleDelete = async () => {
|
||||||
await qnaDelete(qnaId);
|
await qnaDelete(qnaId);
|
||||||
navigate('..');
|
navigate('..', { replace: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -15,7 +15,7 @@ export default function QuizsetDetailPage() {
|
|||||||
};
|
};
|
||||||
const handleDelete = async () => {
|
const handleDelete = async () => {
|
||||||
await quizsetDelete(quizsetId);
|
await quizsetDelete(quizsetId);
|
||||||
navigate('..');
|
navigate('..', { replace: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
Reference in New Issue
Block a user