mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(docker): remove prepended slash by default on container names [EE-3592] (#8195)
* remove prepended slash by default if present * trimcontainername still needed
This commit is contained in:
parent
bfc610c192
commit
f9bbe000fb
4 changed files with 13 additions and 11 deletions
|
@ -37,9 +37,15 @@ export function parseViewModel(
|
|||
)
|
||||
);
|
||||
|
||||
const names = response.Names.map((n) => {
|
||||
const nameWithoutSlash = n[0] === '/' ? response.Names[0].slice(1) : n;
|
||||
return nameWithoutSlash;
|
||||
});
|
||||
|
||||
return {
|
||||
...response,
|
||||
ResourceControl: resourceControl,
|
||||
Names: names,
|
||||
NodeName: nodeName,
|
||||
IP: ip,
|
||||
StackName: stackName,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue