Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
},
searchFilterCount(savedSearch) {
return Object.entries(savedSearch.params).reduce((sum, [key, val]) => {
if (key === 'keywords') {
if (key === 'keywords' || val === null) {
return sum;
} else if (typeof val === 'boolean') {
return sum + 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1749,6 +1749,10 @@ export const Invitation = new Resource({
export const SavedSearch = new Resource({
tableName: TABLE_NAMES.SAVEDSEARCH,
urlName: 'savedsearch',

getUserId(obj) {
return obj.saved_by;
},
});

export const User = new Resource({
Expand Down