diff --git a/openapi-config.ts b/openapi-config.ts deleted file mode 100644 index 911bfe0..0000000 --- a/openapi-config.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { ConfigFile } from '@rtk-query/codegen-openapi' - -const config: ConfigFile = { - schemaFile: 'https://platform.bro-js.ru/jrnl-bh/documentation/json', - apiFile: './src/__data__/api/api.ts', - apiImport: 'api', - outputFile: './src/__data__/api/jrnl.ts', - exportName: 'jrnlApi', - hooks: true, -} - -export default config diff --git a/package.json b/package.json index 40baf01..dfc00d1 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,6 @@ "author": "", "license": "MIT", "devDependencies": { - "@rtk-query/codegen-openapi": "^1.2.0", "@typescript-eslint/eslint-plugin": "^7.4.0", "@typescript-eslint/parser": "^7.4.0", "eslint": "^8.57.0", diff --git a/src/pages/attendance/attendance.tsx b/src/pages/attendance/attendance.tsx index ec4ef47..ee0d854 100644 --- a/src/pages/attendance/attendance.tsx +++ b/src/pages/attendance/attendance.tsx @@ -63,7 +63,7 @@ export const Attendance = () => { Дата Название занятия {data.students.map((student) => ( - {student.name || JSON.stringify(student.value) || 'Имя не определено'} + {student.name || student.value || 'Имя не определено'} ))}