Fix glances service widgets handling of default version
This commit is contained in:
1 parent
97d193faf1
commit
b0d57866a0
10 files changed
+13
-23
No files matched your search
@@ -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(() => {
|
||||
|
||||
Reference in new issue
Block a user