Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix typescript build errors

Gabe Kangase0ce9a35acf4
diff --git a/web/pages/components/log-table.tsx b/web/pages/components/log-table.tsx
index ce543f19b6..b63e1236a1 100644
--- a/web/pages/components/log-table.tsx
+++ b/web/pages/components/log-table.tsx
@@ -30,7 +30,7 @@ interface Props {
}
export default function LogTable({ logs, pageSize }: Props) {
- if (!logs.length) {
+ if (!logs?.length) {
return null;
}
const columns = [
diff --git a/web/pages/components/statistic.tsx b/web/pages/components/statistic.tsx
index beefee6200..ae5b5568bd 100644
--- a/web/pages/components/statistic.tsx
+++ b/web/pages/components/statistic.tsx
@@ -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,
};
diff --git a/web/pages/upgrade.tsx b/web/pages/upgrade.tsx
index 7e0836c292..a0e7e2c32e 100644
--- a/web/pages/upgrade.tsx
+++ b/web/pages/upgrade.tsx
@@ -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 = [
{