mirror of
https://github.com/andwati/dokploy.git
synced 2026-10-25 22:42:18 +00:00
fix: preserve stack log selection on fetch failures
This commit is contained in:
@@ -167,7 +167,7 @@ export const getContainersByAppNameMatch = async (
|
||||
return containers || [];
|
||||
} catch {}
|
||||
|
||||
return [];
|
||||
return appType === "stack" ? undefined : [];
|
||||
};
|
||||
|
||||
const getStackTaskContainers = async (appName: string, serverId?: string) => {
|
||||
@@ -227,7 +227,7 @@ const getStackTaskContainers = async (appName: string, serverId?: string) => {
|
||||
return containers;
|
||||
} catch {}
|
||||
|
||||
return [];
|
||||
return undefined;
|
||||
};
|
||||
|
||||
export const getStackContainersByAppName = async (
|
||||
@@ -243,7 +243,7 @@ export const getStackContainersByAppName = async (
|
||||
const { stdout, stderr } = await execAsyncRemote(serverId, command);
|
||||
|
||||
if (stderr) {
|
||||
return [];
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (!stdout) return [];
|
||||
@@ -252,7 +252,7 @@ export const getStackContainersByAppName = async (
|
||||
const { stdout, stderr } = await execAsync(command);
|
||||
|
||||
if (stderr) {
|
||||
return [];
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (!stdout) return [];
|
||||
@@ -292,7 +292,7 @@ export const getStackContainersByAppName = async (
|
||||
return containers || [];
|
||||
} catch {}
|
||||
|
||||
return [];
|
||||
return undefined;
|
||||
};
|
||||
|
||||
export const getServiceContainersByAppName = async (
|
||||
|
||||
Reference in New Issue
Block a user