mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
resolver_generator.js
Use optional chaining when checking if plugins exists on API response (#170403)
This commit is contained in:
parent
9c2652778f
commit
fa8ae52b66
1 changed files with 1 additions and 1 deletions
|
@ -337,7 +337,7 @@ export const isServerlessKibanaFlavor = async (client: KbnClient | Client): Prom
|
|||
// If we don't have status for plugins, then error
|
||||
// the Status API will always return something (its an open API), but if auth was successful,
|
||||
// it will also return more data.
|
||||
if (!kbnStatus.status.plugins) {
|
||||
if (!kbnStatus?.status?.plugins) {
|
||||
throw new Error(
|
||||
`Unable to retrieve Kibana plugins status (likely an auth issue with the username being used for kibana)`
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue