mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Added a check to ensure that source.url.path exists before iterating through them. (#66505)
This commit is contained in:
parent
41d16f4daf
commit
8c36a37770
1 changed files with 7 additions and 4 deletions
|
@ -37,13 +37,16 @@ module.exports = spec => {
|
|||
Object.keys(spec).forEach(api => {
|
||||
const source = spec[api];
|
||||
|
||||
if (source.url.paths.every(path => Boolean(path.deprecated))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!source.url) {
|
||||
return result;
|
||||
}
|
||||
|
||||
if (source.url.path) {
|
||||
if (source.url.paths.every(path => Boolean(path.deprecated))) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const convertedSpec = (result[api] = {});
|
||||
if (source.params) {
|
||||
const urlParams = convertParams(source.params);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue