mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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
|
const res: SimpleSOAssetType[] = resolvedObjects
|
||||||
.map(({ saved_object: savedObject }) => savedObject)
|
.map(({ saved_object: savedObject }) => savedObject)
|
||||||
.filter((savedObject) => displayedAssetTypesLookup.has(savedObject.type))
|
.filter(
|
||||||
|
(savedObject) =>
|
||||||
|
savedObject?.error?.statusCode !== 404 && displayedAssetTypesLookup.has(savedObject.type)
|
||||||
|
)
|
||||||
.map((obj) => {
|
.map((obj) => {
|
||||||
// Kibana SOs are registered with an app URL getter, so try to use that
|
// Kibana SOs are registered with an app URL getter, so try to use that
|
||||||
// for retrieving links to assets whenever possible
|
// for retrieving links to assets whenever possible
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue