Skip to content

Commit

Permalink
only query pinned events
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierM committed Dec 16, 2020
1 parent bf7dbcc commit ffafc87
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ export const PinnedTabContentComponent: React.FC<Props> = ({
);

const filterQuery = useMemo(() => {
if (isEmpty(pinnedEventIds)) {
return '';
}
const filterObj = Object.entries(pinnedEventIds).reduce<PinnedFilter>(
(acc, [pinnedId, isPinned]) => {
if (!isEmpty(isPinned)) {
if (isPinned) {
return {
...acc,
bool: {
Expand Down

0 comments on commit ffafc87

Please sign in to comment.