mirror of
https://github.com/fankes/beszel.git
synced 2025-10-19 01:39:34 +08:00
don't reset container filter when changing chart time
This commit is contained in:
@@ -63,6 +63,7 @@ export default function SystemDetail({ name }: { name: string }) {
|
||||
return () => {
|
||||
resetCharts()
|
||||
$chartTime.set('1h')
|
||||
$containerFilter.set('')
|
||||
setHasDocker(false)
|
||||
}
|
||||
}, [name])
|
||||
@@ -72,7 +73,6 @@ export default function SystemDetail({ name }: { name: string }) {
|
||||
setDockerCpuChartData([])
|
||||
setDockerMemChartData([])
|
||||
setDockerNetChartData([])
|
||||
$containerFilter.set('')
|
||||
}
|
||||
|
||||
useEffect(resetCharts, [chartTime])
|
||||
|
Reference in New Issue
Block a user