Skip to content

Commit

Permalink
change: removed router.refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
1nayu committed Oct 30, 2024
1 parent 4fbae6c commit 03f3022
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions components/images/imageCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ export default function ImageCreator() {
// Clear the states after upload
setFile(null);
setBase64(null);

router.refresh()
};

return (
Expand Down
1 change: 0 additions & 1 deletion components/images/imageEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function ImageEditor(props: ImageEditorProps) {
const handleSubmit = async () => {
await imageFactory().delete(props.image.id);
router.back()
router.refresh()
};

return (
Expand Down
1 change: 0 additions & 1 deletion components/information/informationCreator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default function InformationCreator() {

// redirect to role page
router.push('/information')
router.refresh()
}

return (
Expand Down
2 changes: 0 additions & 2 deletions components/information/informationEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,13 @@ export default function InformationEditor(props: InformationEditorProps) {

// reload
router.push("/information")
router.refresh()
}

const handleDelete = async () => {
await informationFactory().delete(props.information.id)

// reload
router.push("/information")
router.refresh()
}

return (
Expand Down

0 comments on commit 03f3022

Please sign in to comment.