style: fix linting issues met Prettier
This commit is contained in:
parent
902518f9b1
commit
3760b3f6f3
2 changed files with 4 additions and 4 deletions
|
@ -20,7 +20,7 @@ import { fetchStudents } from './students.js';
|
|||
import { ServerErrorException } from '../exceptions/server-error-exception.js';
|
||||
import { BadRequestException } from '../exceptions/bad-request-exception.js';
|
||||
import { ConflictException } from '../exceptions/conflict-exception.js';
|
||||
import { PostgreSqlExceptionConverter } from "@mikro-orm/postgresql";
|
||||
import { PostgreSqlExceptionConverter } from '@mikro-orm/postgresql';
|
||||
|
||||
export async function fetchAssignment(classid: string, assignmentNumber: number): Promise<Assignment> {
|
||||
const classRepository = getClassRepository();
|
||||
|
|
|
@ -102,15 +102,15 @@
|
|||
{ cid: clsId, an: num },
|
||||
{
|
||||
onSuccess: (data) => {
|
||||
if (data?.assignment){
|
||||
if (data?.assignment) {
|
||||
window.location.reload();
|
||||
}
|
||||
showSnackbar(t("success") ,"success");
|
||||
showSnackbar(t("success"), "success");
|
||||
},
|
||||
onError: (e) => {
|
||||
showSnackbar(t("failed") + ": " + e.response.data.error || e.message, "error");
|
||||
},
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue