mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-18 18:49:50 +00:00
Fix glances service widgets handling of default version
This commit is contained in:
parent
97d193faf1
commit
b0d57866a0
10 changed files with 13 additions and 23 deletions
|
@ -21,9 +21,8 @@ export default function Component({ service }) {
|
|||
|
||||
const [dataPoints, setDataPoints] = useState(new Array(pointsLimit).fill({ a: 0, b: 0 }, 0, pointsLimit));
|
||||
|
||||
const { data, error } = useWidgetAPI(widget, "gpu", {
|
||||
const { data, error } = useWidgetAPI(widget, `${version}/gpu`, {
|
||||
refreshInterval: Math.max(defaultInterval, refreshInterval),
|
||||
version,
|
||||
});
|
||||
|
||||
useEffect(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue