[Dataset Quality] Make integration icons path optional (#190760)

## 📓 Summary

Closes #190431 

This is a quick fix to apply correct decoding of the integration icons,
given their `path` property might not exist.

| **Before** | **After** |
|--------|--------|
| <img width="362" alt="before"
src="https://github.com/user-attachments/assets/60f48767-9905-446e-a5d7-58fca9fb0ba8">
| <img width="381" alt="after"
src="https://github.com/user-attachments/assets/57b5b456-ae58-4b21-8ee4-9a03e4fa6b4c">
|

Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani@elastic.co>
This commit is contained in:
Marco Antonio Ghiani 2024-08-20 14:47:32 +02:00 committed by GitHub
parent 929d4078b0
commit af6f4102aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,12 +52,12 @@ export type IntegrationDashboardsResponse = rt.TypeOf<typeof integrationDashboar
export const integrationIconRt = rt.intersection([
rt.type({
path: rt.string,
src: rt.string,
}),
rt.partial({
title: rt.string,
path: rt.string,
size: rt.string,
title: rt.string,
type: rt.string,
}),
]);