Skip to content

Commit

Permalink
Set keywords and ignore_keywords to null if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
EricTendian committed Sep 23, 2024
1 parent 20b1b51 commit eb4e3e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/components/notification-subscription-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ export default class NotificationSubscriptionFormComponent extends Component {
.getAll('notification_channels')
.map((value) => parseInt(value)),
};
if (data.keywords.length == 1 && data.keywords[0] == '') {
data.keywords = null;
}
if (data.ignore_keywords.length == 1 && data.ignore_keywords[0] == '') {
data.ignore_keywords = null;
}
const location = {
address: formdata.get('address'),
geo: {
Expand Down

0 comments on commit eb4e3e6

Please sign in to comment.