mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-29 08:04:53 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f22ae22375 | ||
|
|
a4b6ea4bd2 |
@@ -2193,7 +2193,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) },
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user