mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
added check for array (#100164)
This commit is contained in:
parent
5c3527d8a6
commit
bc5472d5da
1 changed files with 3 additions and 0 deletions
|
@ -81,6 +81,9 @@ export function extractReferences(
|
|||
}
|
||||
|
||||
const { panels, state } = dashboardAttributesToState(attributes);
|
||||
if (!Array.isArray(panels)) {
|
||||
return { attributes, references };
|
||||
}
|
||||
|
||||
if (((panels as unknown) as Array<Record<string, string>>).some(isPre730Panel)) {
|
||||
return pre730ExtractReferences({ attributes, references }, deps);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue