mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix: normalize state string to lowercase and update filter quotes in docker service functions
This commit is contained in:
@@ -196,7 +196,7 @@ export const getStackContainersByAppName = async (
|
|||||||
: "No container name";
|
: "No container name";
|
||||||
|
|
||||||
const state = parts[2]
|
const state = parts[2]
|
||||||
? parts[2].replace("State: ", "").trim()
|
? parts[2].replace("State: ", "").trim().toLowerCase()
|
||||||
: "No state";
|
: "No state";
|
||||||
const node = parts[3]
|
const node = parts[3]
|
||||||
? parts[3].replace("Node: ", "").trim()
|
? parts[3].replace("Node: ", "").trim()
|
||||||
@@ -255,7 +255,7 @@ export const getServiceContainersByAppName = async (
|
|||||||
: "No container name";
|
: "No container name";
|
||||||
|
|
||||||
const state = parts[2]
|
const state = parts[2]
|
||||||
? parts[2].replace("State: ", "").trim()
|
? parts[2].replace("State: ", "").trim().toLowerCase()
|
||||||
: "No state";
|
: "No state";
|
||||||
|
|
||||||
const node = parts[3]
|
const node = parts[3]
|
||||||
@@ -426,7 +426,7 @@ export const getNodeApplications = async (serverId?: string) => {
|
|||||||
.trim()
|
.trim()
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map((line) => JSON.parse(line))
|
.map((line) => JSON.parse(line))
|
||||||
.filter((service) => !service.Name.startsWith('dokploy-'));
|
.filter((service) => !service.Name.startsWith("dokploy-"));
|
||||||
|
|
||||||
return appArray;
|
return appArray;
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
|
|||||||
Reference in New Issue
Block a user