1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 13:29:41 +02:00

fix(namespaces): fix service not found error [r8s-296] (#663)

This commit is contained in:
Ali 2025-04-17 12:29:32 +12:00 committed by GitHub
parent afd8507042
commit eaf5283cdb

View file

@ -32,6 +32,9 @@ export async function getServices(
environmentId: EnvironmentId,
namespace: string
) {
if (!namespace) {
return [];
}
try {
const { data: services } = await axios.get<Service[]>(
`kubernetes/${environmentId}/namespaces/${namespace}/services`