You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In src/plugins/discover/public/application/components/doc_views/context/api/anchor.ts, fetchAnchor function returns the following
return {
...doc,
isAnchor: true,
} as OpenSearchHitRecord;
It has type error Types of property 'sort' are incompatible.Type 'string[] | undefined' is not comparable to type 'number[]'. because OpenSearchHitRecord set the sort to be number[] type but sort is returned as a string[] type.
Describe the bug
In src/plugins/discover/public/application/components/doc_views/context/api/anchor.ts,
fetchAnchor
function returns the followingIt has type error
Types of property 'sort' are incompatible.Type 'string[] | undefined' is not comparable to type 'number[]'.
becauseOpenSearchHitRecord
set the sort to benumber[]
type but sort is returned as astring[]
type.Why is sort being defined as
number[]
in OpenSearchHitRecord? Is this an error?The text was updated successfully, but these errors were encountered: