Skip to content

Commit

Permalink
fix: upcoming event types (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
melniiv committed May 22, 2024
1 parent 94e1c09 commit 9c36849
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EVENT_SORT_OPTIONS } from '@events-helsinki/components/constants';
import { EventTypeId } from '@events-helsinki/components/types';
import * as React from 'react';
import { render, screen, waitFor } from '@/test-utils';
import { translations } from '@/test-utils/initI18n';
Expand Down Expand Up @@ -29,7 +30,7 @@ const similarEventQueryVariables = {
keywordNot: undefined,
publisher: undefined,
keywordOrSet2: undefined,
eventType: undefined,
eventType: [EventTypeId.Course, EventTypeId.General],
};

const mocks = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
SIMILAR_EVENTS_AMOUNT,
} from '../../../constants/event-constants';
import type { EventFields } from '../../../types/event-types';
import type {
import {
EventListQuery,
EventListQueryVariables,
EventTypeId,
Expand Down Expand Up @@ -222,6 +222,7 @@ export const useLocationUpcomingEventsQuery = ({
publisherAncestor: null,
// superEventType: 'none', // Removed to experiment LIIKUNTA-512 (https://helsinkisolutionoffice.atlassian.net/browse/LIIKUNTA-512).
pageSize,
eventType: [EventTypeId.Course, EventTypeId.General],
};
return useEventListQuery({ variables, ssr: false });
};

0 comments on commit 9c36849

Please sign in to comment.