diff --git a/components/images/imageCreator.tsx b/components/images/imageCreator.tsx index 4b6db64..0eca825 100644 --- a/components/images/imageCreator.tsx +++ b/components/images/imageCreator.tsx @@ -71,8 +71,6 @@ export default function ImageCreator() { // Clear the states after upload setFile(null); setBase64(null); - - router.refresh() }; return ( diff --git a/components/images/imageEditor.tsx b/components/images/imageEditor.tsx index 3472426..a1d2091 100644 --- a/components/images/imageEditor.tsx +++ b/components/images/imageEditor.tsx @@ -14,7 +14,6 @@ export default function ImageEditor(props: ImageEditorProps) { const handleSubmit = async () => { await imageFactory().delete(props.image.id); router.back() - router.refresh() }; return ( diff --git a/components/information/informationCreator.tsx b/components/information/informationCreator.tsx index 8d03c03..7b28561 100644 --- a/components/information/informationCreator.tsx +++ b/components/information/informationCreator.tsx @@ -33,7 +33,6 @@ export default function InformationCreator() { // redirect to role page router.push('/information') - router.refresh() } return ( diff --git a/components/information/informationEditor.tsx b/components/information/informationEditor.tsx index c6631ec..641bbe2 100644 --- a/components/information/informationEditor.tsx +++ b/components/information/informationEditor.tsx @@ -30,7 +30,6 @@ export default function InformationEditor(props: InformationEditorProps) { // reload router.push("/information") - router.refresh() } const handleDelete = async () => { @@ -38,7 +37,6 @@ export default function InformationEditor(props: InformationEditorProps) { // reload router.push("/information") - router.refresh() } return (