no JSON stringify in attendance

This commit is contained in:
Primakov Alexandr Alexandrovich 2024-12-12 16:00:49 +03:00
parent 2fe7600ef3
commit 7d6f2a4ca0
3 changed files with 1 additions and 14 deletions

View File

@ -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

View File

@ -19,7 +19,6 @@
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@rtk-query/codegen-openapi": "^1.2.0",
"@typescript-eslint/eslint-plugin": "^7.4.0", "@typescript-eslint/eslint-plugin": "^7.4.0",
"@typescript-eslint/parser": "^7.4.0", "@typescript-eslint/parser": "^7.4.0",
"eslint": "^8.57.0", "eslint": "^8.57.0",

View File

@ -63,7 +63,7 @@ export const Attendance = () => {
<th>Дата</th> <th>Дата</th>
<th>Название занятия</th> <th>Название занятия</th>
{data.students.map((student) => ( {data.students.map((student) => (
<th id={student.id || student.sub} key={student.sub}>{student.name || JSON.stringify(student.value) || 'Имя не определено'}</th> <th id={student.id || student.sub} key={student.sub}>{student.name || student.value || 'Имя не определено'}</th>
))} ))}
</tr> </tr>
</thead> </thead>