fix: compose containers

This commit is contained in:
Lorenzo Migliorero
2024-07-22 17:33:42 +02:00
parent a15eb3b229
commit 7c981b2aac
3 changed files with 17 additions and 4 deletions

View File

@@ -30,12 +30,14 @@ export const DockerLogs = dynamic(
interface Props {
appName: string;
appType: "stack" | "docker-compose";
}
export const ShowDockerLogsCompose = ({ appName }: Props) => {
export const ShowDockerLogsCompose = ({ appName, appType }: Props) => {
const { data } = api.docker.getContainersByAppNameMatch.useQuery(
{
appName,
appType,
},
{
enabled: !!appName,