Browse Source

Fix typescript build errors

pull/1886/head
Gabe Kangas 5 years ago
parent
commit
e0ce9a35ac
  1. 2
      web/pages/components/log-table.tsx
  2. 4
      web/pages/components/statistic.tsx
  3. 2
      web/pages/upgrade.tsx

2
web/pages/components/log-table.tsx

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

4
web/pages/components/statistic.tsx

@ -5,7 +5,7 @@ interface StatisticItemProps { @@ -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 = { @@ -13,7 +13,7 @@ const defaultProps = {
title: '',
value: 0,
prefix: null,
// color: '',
color: '',
progress: false,
centered: false,
};

2
web/pages/upgrade.tsx

@ -6,7 +6,7 @@ import { getGithubRelease } from "../utils/apis"; @@ -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 = [
{

Loading…
Cancel
Save