From 5a220f1a83a287eb2378f56a62afec343ab330c7 Mon Sep 17 00:00:00 2001 From: Sukchan Lee Date: Mon, 25 Sep 2023 22:26:48 +0900 Subject: [PATCH] [WebUI] fixed a EDIT bug after 10 minutes (#2615) After the page remains inactive for 10 minutes, clicking on the edit page will result in a blank screen when you click on edit after 10 minutes, all user data is lost. After capturing the network packets, it can be observed that the frontend sends a fresh request to the backend for data, and the backend responds correctly, but the page does not refresh correctly. `function recent(fetchedAt) { if (fetchedAt === null) return false; const interval = 10 * 60 * 1000; // 10 minutes return ((Date.now() - interval) < fetchedAt); }` --- webui/src/components/Account/Edit.js | 2 +- webui/src/components/Profile/Edit.js | 2 +- webui/src/components/Subscriber/Edit.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webui/src/components/Account/Edit.js b/webui/src/components/Account/Edit.js index e4bb09ec3..3e8d66c16 100644 --- a/webui/src/components/Account/Edit.js +++ b/webui/src/components/Account/Edit.js @@ -145,7 +145,7 @@ class Edit extends Component { return (