fix: show latest threads

This commit is contained in:
Krishav Raj Singh 2025-09-21 11:33:31 +05:30
parent 6eac8175c5
commit 4c52967f6d
1 changed files with 2 additions and 1 deletions

View File

@ -327,7 +327,8 @@ export const getProjects = async (): Promise<Project[]> => {
const { data, error } = await supabase
.from('projects')
.select('*')
.eq('account_id', userData.user.id);
.eq('account_id', userData.user.id)
.order('created_at', { ascending: false });
if (error) {
// Handle permission errors specifically