fix: fetch task infos from correct node
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user