blog id added
This commit was merged in pull request #785.
This commit is contained in:
@@ -28,7 +28,7 @@ export default function BlogItem(props) {
|
||||
|
||||
useEffect(()=>{
|
||||
if(!blog_id){
|
||||
navigate('/',{replace:true})
|
||||
return navigate('/',{replace:true})
|
||||
}
|
||||
apiCall.getSingleBlogData({blog_id}).then(res => {
|
||||
setBlogdata({loading: false, data:res.data})
|
||||
|
||||
Reference in New Issue
Block a user