Skip to content

Commit

Permalink
fix: Asset Forms were appearing under ¨Custom Forms¨ for individuals …
Browse files Browse the repository at this point in the history
…in the form gallery
  • Loading branch information
hopetambala committed May 30, 2021
1 parent 498433b commit 63ed12a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/cached-resources/read.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ function customFormsQuery(surveyingOrganization) {
return new Promise((resolve, reject) => {
checkOnlineStatus().then((online) => {
if (online) {
customQueryService(0, 5000, 'FormSpecificationsV2', 'organizations', surveyingOrganization).then(async (forms) => {
const parseParams = {
typeOfForm: 'Custom',
organizations: surveyingOrganization
};
customMultiParamQueryService(5000, 'FormSpecificationsV2', parseParams).then(async (forms) => {
if (forms !== null && forms !== undefined && forms !== '') {
await storeData(forms, 'customForms');
resolve(JSON.parse(JSON.stringify(forms)));
Expand Down

0 comments on commit 63ed12a

Please sign in to comment.