fix: fetch task infos from correct node

This commit is contained in:
2025-08-28 09:47:02 +02:00
parent c840a4da84
commit eba7bec030
3 changed files with 23 additions and 3 deletions

View File

@@ -249,7 +249,8 @@ class NodeDetailsViewModel extends ViewModel {
// Load tasks data with state preservation
async loadTasksData() {
try {
const response = await window.apiClient.getTasksStatus();
const ip = this.get('nodeIp');
const response = await window.apiClient.getTasksStatus(ip);
this.set('tasks', response || []);
} catch (error) {
console.error('Failed to load tasks:', error);