added sse
parent
3576ecb258
commit
5624ea9dc2
|
@ -81,6 +81,7 @@ export default function LogCard({
|
|||
currentDate.getMonth() + 1
|
||||
}-${currentDate.getFullYear()}`;
|
||||
|
||||
// only open the sse connection if the selected date is today
|
||||
if (selectedDate === today) {
|
||||
sseEventSource.current = new EventSource(
|
||||
`${logApiAddress}/sse/${type}/${selectedDate}`
|
||||
|
|
Loading…
Reference in New Issue