ui: Cope with the possibility of receiving no namespaces (#6975)

This commit is contained in:
John Cowen 2019-12-20 14:56:18 +00:00 committed by GitHub
parent b2c0c08e08
commit 18bafaec35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@
<nav> <nav>
{{#if dc}} {{#if dc}}
<ul> <ul>
{{#if (env 'CONSUL_NSPACES_ENABLED')}} {{#if (and (env 'CONSUL_NSPACES_ENABLED') (gt nspaces.length 0))}}
<li> <li>
{{#if (and (eq nspaces.length 1) (not canManageNspaces)) }} {{#if (and (eq nspaces.length 1) (not canManageNspaces)) }}
<span data-test-nspace-selected={{nspace.Name}}>{{nspace.Name}}</span> <span data-test-nspace-selected={{nspace.Name}}>{{nspace.Name}}</span>