diff --git a/frontend/src/pages/Dashboard/index.js b/frontend/src/pages/Dashboard/index.js index 09061c49f47cb00e760e40e6748ed93eafd3b1c7..c332ea094d49c2034692398e4b5e2e640ba3355c 100644 --- a/frontend/src/pages/Dashboard/index.js +++ b/frontend/src/pages/Dashboard/index.js @@ -66,16 +66,22 @@ class DetailButton extends Component { } class UEInfo extends Component { + ueInfoFetcherTimer = null; componentDidMount() { UEInfoApiHelper.fetchRegisteredUE().then(); // Fetch ue info per 2 seconds - // setInterval(async () => { + // this.ueInfoFetcherTimer = setInterval(async () => { // await UEInfoApiHelper.fetchRegisteredUE(); // }, 2000); } + componentWillUnmount() { + // if (this.ueInfoFetcherTimer) + // clearInterval(this.ueInfoFetcherTimer); + } + cellButton(cell, row, enumObject, rowIndex) { return ( <DetailButton cell={cell} row={row} rowIndex={rowIndex}/>