mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Fleet] Fix getBulkAssets behavior with missing dashboard (#205619)
This commit is contained in:
parent
d16bc940b1
commit
d00a73c5e5
1 changed files with 4 additions and 1 deletions
|
@ -53,7 +53,10 @@ export async function getBulkAssets(
|
|||
|
||||
const res: SimpleSOAssetType[] = resolvedObjects
|
||||
.map(({ saved_object: savedObject }) => savedObject)
|
||||
.filter((savedObject) => displayedAssetTypesLookup.has(savedObject.type))
|
||||
.filter(
|
||||
(savedObject) =>
|
||||
savedObject?.error?.statusCode !== 404 && displayedAssetTypesLookup.has(savedObject.type)
|
||||
)
|
||||
.map((obj) => {
|
||||
// Kibana SOs are registered with an app URL getter, so try to use that
|
||||
// for retrieving links to assets whenever possible
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue