feat: add Sentry source map upload configuration and update environment variables
This commit is contained in:
@@ -35,9 +35,9 @@ export const useFlyerItemsQuery = (flyerId: number | undefined) => {
|
||||
throw new Error(error.message || 'Failed to fetch flyer items');
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
// API returns { items: FlyerItem[] }
|
||||
return data.items || [];
|
||||
const json = await response.json();
|
||||
// API returns { success: true, data: [...] }, extract the data array
|
||||
return json.data ?? json;
|
||||
},
|
||||
// Only run the query if we have a valid flyer ID
|
||||
enabled: !!flyerId,
|
||||
|
||||
Reference in New Issue
Block a user