Back to main fanout screen on save

This commit is contained in:
Jack Kingsman
2026-03-06 18:20:53 -08:00
parent f82cadb4e1
commit 94546f90a4
2 changed files with 39 additions and 2 deletions
@@ -1050,9 +1050,15 @@ export function SettingsFanoutSection({
};
if (enabled !== undefined) update.enabled = enabled;
await api.updateFanoutConfig(editingId, update);
await loadConfigs();
if (onHealthRefresh) await onHealthRefresh();
setEditingId(null);
await loadConfigs();
if (onHealthRefresh) {
try {
await onHealthRefresh();
} catch (err) {
console.error('Failed to refresh health after saving fanout config:', err);
}
}
toast.success(enabled ? 'Integration saved and enabled' : 'Integration saved');
} catch (err) {
toast.error(err instanceof Error ? err.message : 'Failed to save');