mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Refactor ShowConvertedCompose component: simplify conditional rendering of the compose file display by removing unnecessary null check and ensuring consistent layout.
This commit is contained in:
parent
d793c6a2ec
commit
17a859d26d
@ -88,7 +88,6 @@ export const ShowConvertedCompose = ({ composeId }: Props) => {
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
{compose !== null ? (
|
||||
<pre>
|
||||
<CodeEditor
|
||||
value={compose || ""}
|
||||
@ -97,12 +96,6 @@ export const ShowConvertedCompose = ({ composeId }: Props) => {
|
||||
height="50rem"
|
||||
/>
|
||||
</pre>
|
||||
) : (
|
||||
<div className="py-4 text-center text-muted-foreground">
|
||||
No compose file available. Make sure at least one domain is
|
||||
configured for this project.
|
||||
</div>
|
||||
)}
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user