feat: Add debug logging to settings persistence
Some checks failed
ParentFlow CI/CD Pipeline / Backend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Frontend Tests (push) Has been cancelled
ParentFlow CI/CD Pipeline / Security Scanning (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-app/maternal-app-backend dockerfile:Dockerfile.production name:backend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Build Docker Images (map[context:maternal-web dockerfile:Dockerfile.production name:frontend]) (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Development (push) Has been cancelled
ParentFlow CI/CD Pipeline / Deploy to Production (push) Has been cancelled
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled

This commit is contained in:
Andrei
2025-10-08 15:02:14 +00:00
parent c228ed4292
commit ced46cbe7f
2 changed files with 9 additions and 1 deletions

View File

@@ -75,7 +75,9 @@ export default function SettingsPage() {
const handleSave = async () => {
try {
setSaving(true);
await apiClient.post('/admin/dashboard/settings', settings);
console.log('Saving settings:', settings);
const response = await apiClient.post('/admin/dashboard/settings', settings);
console.log('Save response:', response);
setSaveSuccess(true);
setTimeout(() => setSaveSuccess(false), 3000);
} catch (error) {