Skip to content

Commit

Permalink
feat: force reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
dodumosu committed Feb 10, 2021
1 parent 63a56b8 commit 226e359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apollo/pwa/templates/pwa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,10 @@ <h5 class="card-header">[[ form.name ]]</h5>
storage = storage || {};
let collection = storage[form.id] || [];
collection.push(submission);

if (form.form_type === 'INCIDENT')
instance.incidents = Object.assign({}, storage);
else
instance.surveys = Object.assign({}, storage);
}

return submission;
Expand Down

0 comments on commit 226e359

Please sign in to comment.