kibana/x-pack/legacy
Walter Rafelsberger ec5d1a9ce9
[ML] Fixes getTab() to always return an array. (#45616)
- Fixes getTabs() to always return an array. I was wondering why TypeScript didn't flag the tabs.map(...) part because tabs could possibly be undefined. It's because Record assumes that every key exists. More on that can be found in this blog post.
- This PR fixes a) the type of TAB_MAP by wrapping it in Partial<...> so it correctly flags the tabs.map() part with tabs possibly being undefined and b) fixes getTabs()'s return value by always returning an array.
2019-09-13 05:39:38 -07:00
..
common [Logs UI] Make column configurations reorderable (#41035) 2019-07-22 13:47:47 -05:00
plugins [ML] Fixes getTab() to always return an array. (#45616) 2019-09-13 05:39:38 -07:00
server/lib Introduce PKI authentication provider. (#42606) 2019-08-27 18:28:54 +02:00