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
a2630be349
commit
2c8a77e392
1 changed files with 0 additions and 7 deletions
|
@ -20,13 +20,6 @@ export default function StandardImageList({ user }: { user: UserProfile }) {
|
||||||
}
|
}
|
||||||
}, [user.username]);
|
}, [user.username]);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
images.sort(
|
|
||||||
(a, b) =>
|
|
||||||
new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()
|
|
||||||
);
|
|
||||||
}, [user]);
|
|
||||||
|
|
||||||
const fetchUserPosts = async () => {
|
const fetchUserPosts = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await api.get(`/posts/getUserPosts/${user.username}`);
|
const response = await api.get(`/posts/getUserPosts/${user.username}`);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue