Skip to content

Commit e935c54

Browse files
committed
fix build and few lint errors
1 parent 342cd15 commit e935c54

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

app/[locale]/dashboard/[entityType]/[entitySlug]/dataset/[id]/edit/components/EditMetadata.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
} from 'opub-ui';
2525

2626
import { GraphQL } from '@/lib/api';
27-
import { Loading } from '@/components/loading';
2827
import DatasetLoading from '../../../components/loading-dataset';
2928
import { useDatasetEditStatus } from '../context';
3029

@@ -344,7 +343,6 @@ export function EditMetadata({ id }: { id: string }) {
344343
}) || [];
345344

346345
defaultVal['geographies'] =
347-
// @ts-ignore - geographies will be available after GraphQL codegen
348346
dataset?.geographies?.map((geo: any) => {
349347
return {
350348
label: geo.name,

app/[locale]/dashboard/[entityType]/[entitySlug]/usecases/edit/[id]/metadata/page.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
TypeMetadata,
99
TypeSector,
1010
TypeTag,
11-
TypeUseCase,
1211
UpdateUseCaseMetadataInput,
1312
} from '@/gql/generated/graphql';
1413
import { useMutation, useQuery } from '@tanstack/react-query';
@@ -165,7 +164,7 @@ const Metadata = () => {
165164
refetchOnReconnect: true,
166165
}
167166
);
168-
const { data: metadataFields, isLoading: isMetadataFieldsLoading } = useQuery(
167+
const { data: metadataFields } = useQuery(
169168
[`metadata_fields_USECASE_${params.id}`],
170169
() =>
171170
GraphQL(
@@ -219,7 +218,6 @@ const Metadata = () => {
219218
}) || [];
220219

221220
defaultVal['geographies'] =
222-
// @ts-ignore - geographies will be available after GraphQL codegen
223221
data?.geographies?.map((geo: any) => {
224222
return {
225223
label: geo.name,

app/api/auth/[...nextauth]/options.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { Account, AuthOptions, Session } from 'next-auth';
44
import { JWT } from 'next-auth/jwt';
55
import KeycloakProvider from 'next-auth/providers/keycloak';
66

7-
import { encrypt } from '@/lib/encryption';
8-
97
// this will refresh an expired access token, when needed
108
async function refreshAccessToken(token: JWT) {
119
const urlObj: Record<string, any> = {

0 commit comments

Comments
 (0)