fix: recall from hidden fields of in-app surveys (#2917)

This commit is contained in:
Dhruwang Jariwala
2024-07-29 16:00:13 +05:30
committed by GitHub
parent aa40b916ab
commit ec70c6c613
4 changed files with 4 additions and 1 deletions
+1
View File
@@ -176,6 +176,7 @@ const renderWidget = async (
setIsError(false);
responseQueue.processQueue();
},
hiddenFieldsRecord: hiddenFields,
});
}, survey.delay * 1000);
};
@@ -206,6 +206,7 @@ const renderWidget = async (
setIsError(false);
responseQueue.processQueue();
},
hiddenFieldsRecord: hiddenFields,
});
}, survey.delay * 1000);
};
@@ -21,6 +21,7 @@ export const SurveyModal = ({
languageCode,
responseCount,
styling,
hiddenFieldsRecord,
}: SurveyModalProps) => {
const [isOpen, setIsOpen] = useState(true);
@@ -68,6 +69,7 @@ export const SurveyModal = ({
styling={styling}
isCardBorderVisible={!highlightBorderColor}
clickOutside={placement === "center" ? clickOutside : undefined}
hiddenFieldsRecord={hiddenFieldsRecord}
/>
</Modal>
</div>
@@ -71,7 +71,6 @@ export const RecallItemSelect = ({
}, [recallItems]);
const hiddenFieldRecallItems = useMemo(() => {
if (localSurvey.type !== "link") return [];
if (localSurvey.hiddenFields.fieldIds) {
return localSurvey.hiddenFields.fieldIds
.filter((hiddenFieldId) => {