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:
Mauricio Siu
2025-10-05 00:46:27 -06:00
parent 8a9a0e49ce
commit c8320da716

View File

@@ -52,7 +52,7 @@ export const DockerTerminalModal = ({
{ {
appName, appName,
appType, appType,
...(serverId ? { serverId } : {}), serverId,
}, },
{ {
enabled: !!appName, enabled: !!appName,