mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-24 08:35:26 +02:00
refactor: simplify props destructuring in DockerTerminalModal component
- Updated the props destructuring to directly include `serverId` instead of using a conditional spread operator. - Improved code readability by streamlining the object structure.
This commit is contained in:
@@ -52,7 +52,7 @@ export const DockerTerminalModal = ({
|
||||
{
|
||||
appName,
|
||||
appType,
|
||||
...(serverId ? { serverId } : {}),
|
||||
serverId,
|
||||
},
|
||||
{
|
||||
enabled: !!appName,
|
||||
|
||||
Reference in New Issue
Block a user