improve useeffects for favicon and system subscription

This commit is contained in:
Henry Dollman
2024-10-19 19:57:35 -04:00
parent b5c158d1b3
commit 6de5dce176
3 changed files with 9 additions and 11 deletions

View File

@@ -155,7 +155,7 @@ export default function SystemDetail({ name }: { name: string }) {
return () => {
pb.collection('systems').unsubscribe(system.id)
}
}, [system])
}, [system.id])
const chartData: ChartData = useMemo(() => {
const lastCreated = Math.max(