fix(ui): recording status check

This commit is contained in:
Shekar Siri 2025-02-04 16:46:06 +01:00
parent 7caa386d2d
commit d374137e42
2 changed files with 3 additions and 4 deletions

View file

@ -12,10 +12,9 @@ const withSiteId = routes.withSiteId;
const NoSessionsMessage = () => {
const { projectsStore } = useStore();
const sites = projectsStore.list;
const siteId = projectsStore.siteId;
const history = useHistory();
const activeSite = sites.find((s) => s.id === siteId);
const activeSite = projectsStore.active;
const showNoSessions = !!activeSite && !activeSite.recorded;
const onboardingPath = withSiteId(onboardingRoute('installing'), siteId);

View file

@ -76,8 +76,8 @@ function SessionList() {
const fetchStatus = async () => {
const response = await sessionService.getRecordingStatus();
setStatusData({
status: response.recording_status,
count: response.sessions_count
status: response.recordingStatus,
count: response.sessionsCount
});
};