Chore: some more type fixes (#73606)

* some type fixes

* some select/table fixes

* some uplot type improvements

* couple more
This commit is contained in:
Ashley Harrison
2023-08-23 10:11:59 +01:00
committed by GitHub
parent de118a3736
commit 02f2ff1870
30 changed files with 100 additions and 192 deletions
@@ -97,8 +97,8 @@ function getLength(data?: DataFrameDTO | DataFrame) {
if (!data || !data.fields || !data.fields.length) {
return 0;
}
if (data.hasOwnProperty('length')) {
return (data as DataFrame).length;
if ('length' in data) {
return data.length;
}
return data.fields[0].values!.length;
}