Fix typescript build errors

This commit is contained in:
Gabe Kangas 2020-11-16 14:32:37 -08:00
parent 59f63e5438
commit e0ce9a35ac
3 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ interface Props {
}
export default function LogTable({ logs, pageSize }: Props) {
if (!logs.length) {
if (!logs?.length) {
return null;
}
const columns = [

View file

@ -5,7 +5,7 @@ interface StatisticItemProps {
title?: string,
value?: any,
prefix?: JSX.Element,
// color?: string,
color?: string,
progress?: boolean,
centered?: boolean,
};
@ -13,7 +13,7 @@ const defaultProps = {
title: '',
value: 0,
prefix: null,
// color: '',
color: '',
progress: false,
centered: false,
};

View file

@ -6,7 +6,7 @@ import { getGithubRelease } from "../utils/apis";
const { Title } = Typography;
function AssetTable(assets) {
const data = Object.values(assets);
const data = Object.values(assets) as object[];
const columns = [
{