Skip to content

Commit

Permalink
trying shit
Browse files Browse the repository at this point in the history
  • Loading branch information
tfhuhtal committed Sep 26, 2024
1 parent 8597fa7 commit 797e41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const Answer = ({ question, faculty, modify = true }) => {

useEffect(() => {
if (!hasLock) {
dispatch(getTempAnswersByForm(form))
// dispatch(getTempAnswersByForm(form))
}
}, [dispatch, form, dataFromRedux, hasLock])
}, [dispatch, dataFromRedux, form, hasLock])

const openFormModal = question => {
askForLock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { facultyMonitoringQuestions as questions } from '@root/client/questionDa
import { formKeys } from '@root/config/data'
import { wsJoinRoom, wsLeaveRoom } from 'Utilities/redux/websocketReducer'
import { clearFormState, setViewOnly } from 'Utilities/redux/formReducer'
import { getTempAnswersByForm } from 'Utilities/redux/tempAnswersReducer'
import Answer from './Answer'
import QuestionPicker from './QuestionPicker'
import './FacultyTrackingView.scss'
Expand All @@ -36,6 +37,7 @@ const FacultyTrackingView = ({ faculty }) => {
document.title = `${t('facultymonitoring')}${faculty}`

if (!faculty || !form || !hasReadRights) return
dispatch(getTempAnswersByForm(form))

if (!hasWriteRights) {
dispatch(wsJoinRoom(faculty, form))
Expand Down

0 comments on commit 797e41d

Please sign in to comment.