fix(ui): volumes save — fill type/read_only defaults for generated type

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Tomas DvorakandDevin committed 2026-10-09 00:40:12 +02:00
1 parent 2f8f595d6e
commit a4b6ea4bd2
1 file changed
+5 -1
@@ -2169,7 +2169,11 @@ export function ServiceDetailPage() {
disabled={updateServiceMutation.isPending} disabled={updateServiceMutation.isPending}
onClick={() => onClick={() =>
updateServiceMutation.mutate( 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) }, { onSuccess: () => setVolumesForm(null) },
) )
} }