fix: import the bookmarked status to the start of the cache array

merge-requests/3297/head
P. Reis 2024-12-13 22:49:39 -03:00
rodzic e3aff3bdc6
commit beed9fa6c3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -61,7 +61,7 @@ function useBookmark() {
const response = await api.post(`/api/v1/statuses/${statusId}/bookmark`);
const result = statusSchema.safeParse(await response.json());
if (result.success) {
dispatch(importEntities([result.data], Entities.STATUSES, 'bookmarks'));
dispatch(importEntities([result.data], Entities.STATUSES, 'bookmarks', 'start'));
}
return { success: true };
} catch (e) {