mirror of
https://github.com/bubblecup-12/VogelSocialMedia.git
synced 2025-07-06 15:18:48 +00:00
remove unnecessary sort
This commit is contained in:
parent
7e48767ed6
commit
2006c2c510
1 changed files with 0 additions and 7 deletions
|
@ -20,13 +20,6 @@ export default function StandardImageList({ user }: { user: UserProfile }) {
|
|||
}
|
||||
}, [user.username]);
|
||||
|
||||
useEffect(() => {
|
||||
images.sort(
|
||||
(a, b) =>
|
||||
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
|
||||
);
|
||||
}, [user]);
|
||||
|
||||
const fetchUserPosts = async () => {
|
||||
try {
|
||||
const response = await api.get(`/posts/getUserPosts/${user.username}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue