diff --git a/app/AdminComponents/About/AboutPage.tsx b/app/AdminComponents/About/AboutPage.tsx index e4aa89f..e17d593 100644 --- a/app/AdminComponents/About/AboutPage.tsx +++ b/app/AdminComponents/About/AboutPage.tsx @@ -8,7 +8,6 @@ import { Icon } from "@iconify/react/dist/iconify.js"; type Props = {}; const AboutPage = (props: Props) => { - const userId = process.env.NEXT_PUBLIC_USER_ID; const [dataOk, setDataOk] = useState(true); const [openIconList, setOpenIconList] = useState(false); const [iconList, setIconList] = useState([]); @@ -44,12 +43,7 @@ const AboutPage = (props: Props) => { const getAbout = async () => { try { - const res = await Network.run( - null, - "GET", - "/about/aboutget?id=" + userId, - null - ); + const res = await Network.run(null, "GET", "/about/aboutget", null); const icons = await Network.run(null, "GET", "icons", null); setValues(res.data); setIconList(icons.data ?? []); diff --git a/pages/about/index.tsx b/pages/about/index.tsx index 7d3639e..6263e64 100644 --- a/pages/about/index.tsx +++ b/pages/about/index.tsx @@ -14,14 +14,8 @@ const AboutPage = ({ data, messages }: Props) => { export default AboutPage; export async function getServerSideProps(context: any) { - const userId = process.env.NEXT_PUBLIC_USER_ID; try { - const res = await Network.run( - null, - "GET", - "/about/aboutget?id=669eb755c42b621e680a24a7", - null - ); + const res = await Network.run(null, "GET", "/about/aboutget", null); return { props: {