Only show last 200 elements in the UI history tab.

This commit is contained in:
comfyanonymous
2023-11-20 16:51:41 -05:00
parent a03dde190e
commit 2dd5b4dd78
3 changed files with 17 additions and 4 deletions

View File

@@ -256,7 +256,7 @@ class ComfyApi extends EventTarget {
*/
async getHistory() {
try {
const res = await this.fetchApi("/history");
const res = await this.fetchApi("/history?max_items=200");
return { History: Object.values(await res.json()) };
} catch (error) {
console.error(error);