Skip to content

Commit

Permalink
[Fleet] Fix getBulkAssets behavior with missing dashboard (#205619)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchaulet authored Jan 6, 2025
1 parent d16bc94 commit d00a73c
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 d00a73c

Please sign in to comment.