mirror of https://github.com/portainer/portainer
fix(namespaces): fix service not found error [r8s-296] (#664)
parent
be3e8e3332
commit
01afe34df7
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue