Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick fixes for the PWA #896

Merged
merged 6 commits into from
Sep 13, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: set empty array for multiselect fields
  • Loading branch information
dodumosu committed Sep 13, 2022
commit f39d9bd1d63a9916b6a701a3ac02330ee00da914
2 changes: 2 additions & 0 deletions apollo/pwa/templates/pwa/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,8 @@ <h6 class="card-header" :class="getCompletionClass(index)"><a class="text-white"
let fields = group.fields.filter(f => f.type !== 'image');
let newData = copyFunc(instance.data);
fields.forEach(f => delete newData[f.tag]);
let multiSelectFields = fields.filter(f => f.type === 'multiselect');
multiSelectFields.forEach(f => newData[f.tag] = []);
instance.data = newData;
}
);
Expand Down