Auto add new widgets for backend nodes

This commit is contained in:
space-nuko
2023-05-04 11:42:21 -05:00
parent 93cf2ed98a
commit 71a3abf518
13 changed files with 150 additions and 101 deletions

View File

@@ -231,7 +231,7 @@ export default class ComfyAPI extends EventTarget {
};
} catch (error) {
console.error(error);
return { Running: [], Pending: [] };
return { Running: [], Pending: [], error };
}
}
@@ -245,7 +245,7 @@ export default class ComfyAPI extends EventTarget {
return { History: Object.values(await res.json()) };
} catch (error) {
console.error(error);
return { History: [] };
return { History: [], error };
}
}