Fix of errors: automatic and some manual

This commit is contained in:
2024-11-04 19:56:03 +01:00
parent 90798b12e5
commit f05c25853c
41 changed files with 101 additions and 148 deletions

View File

@@ -46,7 +46,6 @@
<teleport to="#fullCalendar">
<div class="calendar-actives">
<template
class=""
v-for="u in getActiveUsers"
:key="u.id"
>

View File

@@ -17,16 +17,16 @@ export interface UserData {
}
export const addIdToValue = (string: string, id: number): string => {
let array = string ? string.split(',') : [];
const array = string ? string.split(',') : [];
array.push(id.toString());
let str = array.join();
const str = array.join();
return str;
};
export const removeIdFromValue = (string: string, id: number) => {
let array = string.split(',');
array = array.filter(el => el !== id.toString());
let str = array.join();
const str = array.join();
return str;
};
@@ -34,7 +34,7 @@ export const removeIdFromValue = (string: string, id: number) => {
* Assign missing keys for the ConcernedGroups component
*/
export const mapEntity = (entity: EventInput): EventInput => {
let calendar = { ...entity};
const calendar = { ...entity};
Object.assign(calendar, {thirdParties: entity.professionals});
if (entity.startDate !== null ) {