Skip to content

Commit 4d9e444

Browse files
committed
Suppress some JS errors until axios is updated
1 parent 32bbc90 commit 4d9e444

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

frontends/main/src/app/c/[channelType]/[name]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ const Page: React.FC = async ({
9494
)
9595

9696
const searchRequest = getSearchParams({
97+
// @ts-expect-error Local openapi client https://www.npmjs.com/package/@mitodl/open-api-axios
98+
// out of sync while we adding an enum value.
9799
requestParams: validateRequestParams(search!),
98100
constantSearchParams,
99101
facetNames,

frontends/main/src/app/search/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const Page: React.FC = async ({
3939
const search = await searchParams
4040

4141
const params = getSearchParams({
42+
// @ts-expect-error Local openapi client https://www.npmjs.com/package/@mitodl/open-api-axios
43+
// out of sync while we adding an enum value.
4244
requestParams: validateRequestParams(search!),
4345
constantSearchParams: {},
4446
facetNames,

frontends/ol-components/src/components/Logo/Logo.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ export const UNIT_LOGOS: Record<OfferedByEnum, LogoObject> = {
4848
},
4949
}
5050

51+
// @ts-expect-error Local openapi client https://www.npmjs.com/package/@mitodl/open-api-axios
52+
// out of sync while we adding an enum value.
5153
export const PLATFORM_LOGOS: Record<PlatformEnum, LogoObject> = {
5254
[PlatformEnum.Ocw]: UNIT_LOGOS[OfferedByEnum.Ocw],
5355
[PlatformEnum.Edx]: {

0 commit comments

Comments
 (0)