diff --git a/app/src/util/history.ts b/app/src/util/history.ts index 53d19dc1c..3de0a2899 100644 --- a/app/src/util/history.ts +++ b/app/src/util/history.ts @@ -112,29 +112,10 @@ const renderRepo = (element: HTMLElement) => { return; } let repoHTML = ""; - response.data.logs.forEach((item: { files: { path: string, id: string }[], id: string, hCreated: string }, index: number) => { - repoHTML += `
  • - 0 ? "" : " fn__hidden"}"> + response.data.logs.forEach((item: { files: { path: string, id: string }[], id: string, hCreated: string }) => { + repoHTML += `
  • ${item.hCreated}
  • `; - if (item.files.length > 0) { - repoHTML += `"; - } - if (index === 0) { - // fetchPost("/api/history/getDocHistoryContent", { - // historyPath: item.items[0].path - // }, (response) => { - // element.lastElementChild.innerHTML = response.data.content; - // }); - } }); element.lastElementChild.firstElementChild.innerHTML = `${repoHTML}`; });