fix(ui): recording status check
This commit is contained in:
parent
7caa386d2d
commit
d374137e42
2 changed files with 3 additions and 4 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue