mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 14:29:40 +02:00
fix(namespaces): fix service not found error [r8s-296] (#663)
This commit is contained in:
parent
afd8507042
commit
eaf5283cdb
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ export async function getServices(
|
||||||
environmentId: EnvironmentId,
|
environmentId: EnvironmentId,
|
||||||
namespace: string
|
namespace: string
|
||||||
) {
|
) {
|
||||||
|
if (!namespace) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const { data: services } = await axios.get<Service[]>(
|
const { data: services } = await axios.get<Service[]>(
|
||||||
`kubernetes/${environmentId}/namespaces/${namespace}/services`
|
`kubernetes/${environmentId}/namespaces/${namespace}/services`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue