From a4b6ea4bd2ca0113de6682ef6c56f21b6832a7c7 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Fri, 9 Oct 2026 00:40:12 +0200 Subject: [PATCH] =?UTF-8?q?fix(ui):=20volumes=20save=20=E2=80=94=20fill=20?= =?UTF-8?q?type/read=5Fonly=20defaults=20for=20generated=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- .../src/features/service/pages/ServiceDetailPage.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/frontend/src/features/service/pages/ServiceDetailPage.tsx b/app/frontend/src/features/service/pages/ServiceDetailPage.tsx index 8259ed3..31b26d6 100644 --- a/app/frontend/src/features/service/pages/ServiceDetailPage.tsx +++ b/app/frontend/src/features/service/pages/ServiceDetailPage.tsx @@ -2169,7 +2169,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) }, ) }