Skip to content

Commit

Permalink
fixed Data Editor cannot see list of records (#3365)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefano Ricci <[email protected]>
  • Loading branch information
SteRiccio and SteRiccio authored Apr 16, 2024
1 parent 03c6209 commit ca61373
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions webapp/components/survey/SurveyDefsLoader/SurveyDefsLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ const SurveyDefsLoader = (props) => {

const dispatch = useDispatch()
const i18n = useI18n()
const includeAnalysis = useAuthCanUseAnalysis()
const surveyInfo = useSurveyInfo()
const ready = useSurveyDefsFetched({ draft, validate })
const surveyId = Survey.getId(surveyInfo)
const includeAnalysis = useAuthCanUseAnalysis()
const ready = useSurveyDefsFetched({ draft, includeAnalysis, validate })
const recordPreviewUuid = useSelector(RecordState.getRecordUuidPreview)

useEffect(() => {
Expand Down
4 changes: 2 additions & 2 deletions webapp/store/survey/hooks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import * as SurveyState from '../state'
import { SurveyStatusState } from '../status'

// ==== Survey
export const useSurveyDefsFetched = ({ draft, validate }) =>
useSelector(SurveyStatusState.isFetchedWithSameParams({ draft, validate }))
export const useSurveyDefsFetched = ({ draft, includeAnalysis, validate }) =>
useSelector(SurveyStatusState.isFetchedWithSameParams({ draft, includeAnalysis, validate }))
export const useSurvey = () => useSelector(SurveyState.getSurvey)
export const useSurveyId = () => useSelector(SurveyState.getSurveyId)
export const useSurveyInfo = () => useSelector(SurveyState.getSurveyInfo)
Expand Down

0 comments on commit ca61373

Please sign in to comment.