mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add several more util functions and tests (#4106)
This commit is contained in:
1 parent
0aabc9a5de
commit
5abc1c618c
9 files changed
+132
-31
No files matched your search
@@ -32,7 +32,7 @@ import type { Align, ListOnScrollProps } from "react-window";
|
||||
|
||||
import { SearchStore, searchStore } from "../../../common/search-store";
|
||||
import { UserStore } from "../../../common/user-store";
|
||||
import { boundMethod, cssNames } from "../../utils";
|
||||
import { array, boundMethod, cssNames } from "../../utils";
|
||||
import { Spinner } from "../spinner";
|
||||
import { VirtualList } from "../virtual-list";
|
||||
import { logStore } from "./log.store";
|
||||
@@ -234,7 +234,7 @@ export class LogList extends React.Component<Props> {
|
||||
render() {
|
||||
const { isLoading } = this.props;
|
||||
const isInitLoading = isLoading && !this.logs.length;
|
||||
const rowHeights = new Array(this.logs.length).fill(this.lineHeight);
|
||||
const rowHeights = array.filled(this.logs.length, this.lineHeight);
|
||||
|
||||
if (isInitLoading) {
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user