@@ -66,8 +66,9 @@ const Images: React.FC = ({ deviceType, deviceOs }) => { const { push } = useRouter() React.useEffect(() => { + if (!data) return model_api - .getBotParams(router.asPath.split('/')[2], data?.access) + .getBotParams(router.asPath.split('/')[2], data.access) .then((res) => { if (!res.title) return push('/404')