feat: add stock management and form resets while removing deprecated barber_ids and updating UI styles
This commit is contained in:
@@ -388,7 +388,7 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
name: service.name,
|
||||
price: service.price,
|
||||
duration: service.duration,
|
||||
barber_ids: service.barberIds || [],
|
||||
// Removed barber_ids as it doesn't exist in the current schema
|
||||
}]);
|
||||
if (error) {
|
||||
console.error('Erro addService:', error);
|
||||
@@ -402,7 +402,6 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
|
||||
name: service.name,
|
||||
price: service.price,
|
||||
duration: service.duration,
|
||||
barber_ids: service.barberIds || [],
|
||||
}).eq('id', service.id);
|
||||
await refreshShops();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user