mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-06 04:19:37 +00: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,
|
appName,
|
||||||
appType,
|
appType,
|
||||||
...(serverId ? { serverId } : {}),
|
serverId,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
enabled: !!appName,
|
enabled: !!appName,
|
||||||
|
|||||||
Reference in New Issue
Block a user