Skip to content

Commit

Permalink
fix: add filter for forms with active deployment status
Browse files Browse the repository at this point in the history
Signed-off-by: Hunter Achieng <[email protected]>
  • Loading branch information
hunterachieng committed May 14, 2024
1 parent 2b7d4a8 commit 94be915
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion form-sharing/1-getNewKoboForms.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ getForms({}, state => {
return keywords.some(keyword => name.toLowerCase().includes(keyword));
};

state.koboForms = state.data.results.filter(form => checkForKeyWords(form.name));
state.koboForms = state.data.results.filter(form => checkForKeyWords(form.name)).filter(form => form.deployment__active);
state.data={};
state.references = [];
return state;
Expand Down

0 comments on commit 94be915

Please sign in to comment.