Fix new eslint reported issues

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-06-17 10:46:55 +02:00
parent 5eadbbaae9
commit ed196d9b84
6 changed files with 8 additions and 8 deletions

View File

@@ -427,7 +427,7 @@ export default class MyEvents extends Vue {
}
monthParticipationsIds(elements: Eventable[]): string[] {
let res = elements.filter((element: Eventable) => {
const res = elements.filter((element: Eventable) => {
return "role" in element;
}) as IParticipant[];
return res.map(({ event }: { event: IEvent }) => {

View File

@@ -542,7 +542,7 @@ export default class Search extends Vue {
}
set eventCategory(eventCategory: string | null) {
let query = { ...this.$route.query, eventCategory };
const query = { ...this.$route.query, eventCategory };
if (query.eventCategory === null) {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore