mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Make error log show up on home screen. Fix key. Closes https://github.com/owncast/owncast/issues/429
This commit is contained in:
parent
3d80d37c8f
commit
05e701df6f
@ -52,9 +52,13 @@ export default function Home() {
|
||||
const getMoreStats = () => {
|
||||
getLogs();
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
getMoreStats();
|
||||
|
||||
let intervalId = null;
|
||||
intervalId = setInterval(getMoreStats, FETCH_INTERVAL);
|
||||
|
||||
return () => {
|
||||
clearInterval(intervalId);
|
||||
}
|
||||
@ -90,7 +94,7 @@ export default function Home() {
|
||||
settingTitle = (videoQualitySettings?.length > 1) ?
|
||||
`${settingTitle} ${index + 1}` : settingTitle;
|
||||
return (
|
||||
<Card title={settingTitle} type="inner" key={settingTitle}>
|
||||
<Card title={settingTitle} type="inner" key={`${settingTitle}${index}`}>
|
||||
<StatisticItem
|
||||
title="Outbound Video Stream"
|
||||
value={videoSetting}
|
||||
|
Loading…
x
Reference in New Issue
Block a user