Merge branch 'feat/service-volumes' into feat/service-domains

This commit is contained in:
Tomas Dvorak committed 2026-10-09 00:40:13 +02:00
commit f22ae22375
1 file changed
+5 -1
@@ -2193,7 +2193,11 @@ export function ServiceDetailPage() {
disabled={updateServiceMutation.isPending}
onClick={() =>
updateServiceMutation.mutate(
{ volumes: volumesForm.filter((v) => v.source.trim() && v.target.startsWith('/')) },
{
volumes: volumesForm
.filter((v) => v.source.trim() && v.target.startsWith('/'))
.map((v) => ({ type: v.type ?? 'volume', source: v.source, target: v.target, read_only: v.read_only ?? false })),
},
{ onSuccess: () => setVolumesForm(null) },
)
}