Skip to content

Commit

Permalink
[Fleet] Fix getBulkAssets behavior with missing dashboard (elastic#20…
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored and kowalczyk-krzysztof committed Jan 7, 2025
1 parent bda53f2 commit 9ced9d1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9ced9d1

Please sign in to comment.