It builds

This commit is contained in:
Gabe Kangas
2020-11-01 00:01:37 -07:00
parent 27f4b8b158
commit 9b89955bb7
17 changed files with 107 additions and 84 deletions

View File

@@ -1,12 +1,13 @@
/* eslint-disable react/prop-types */
import React, { useState, useEffect } from 'react';
import { Table, Typography } from 'antd';
import { SERVER_CONFIG, fetchData, FETCH_INTERVAL } from './utils/apis';
import { SERVER_CONFIG, fetchData, FETCH_INTERVAL } from '../utils/apis';
const { Title } = Typography;
function VideoVariants({ config }) {
if (!config) {
if (!config || !config.videoSettings) {
return null;
}
@@ -80,7 +81,7 @@ function VideoVariants({ config }) {
}
export default function VideoConfig() {
const [config, setConfig] = useState();
const [config, setConfig] = useState({});
const getInfo = async () => {
try {