mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-19 02:59: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
|
@ -26,9 +26,8 @@ export default function Component({ service }) {
|
|||
|
||||
const memoryInfoKey = version === 3 ? 0 : "data";
|
||||
|
||||
const { data, error } = useWidgetAPI(service.widget, "processlist", {
|
||||
const { data, error } = useWidgetAPI(service.widget, `${version}/processlist`, {
|
||||
refreshInterval: Math.max(defaultInterval, refreshInterval),
|
||||
version,
|
||||
});
|
||||
|
||||
if (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue