fix: refresh dashboard access state
This commit is contained in:
@@ -44,6 +44,8 @@ export const DashboardPage: React.FC = () => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
loadDashboard();
|
loadDashboard();
|
||||||
|
const t = setInterval(loadDashboard, 3000);
|
||||||
|
return () => clearInterval(t);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const deleteCancelled = async (target: VisitRequestView) => {
|
const deleteCancelled = async (target: VisitRequestView) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user