fix: type errors
This commit is contained in:
@ -189,6 +189,17 @@ const fetchData = async (
|
||||
handleFetchSuccess(responseData);
|
||||
} else {
|
||||
if (projectId == -1) {
|
||||
const errorCell = new SectionCell({
|
||||
idSectionCell: -1,
|
||||
sectionId: -1,
|
||||
contentSectionCell: "Échec du chargement des données.",
|
||||
modificationDate: new Date().toISOString(),
|
||||
});
|
||||
|
||||
currentDescriptions.value = [errorCell];
|
||||
editedDescriptions.value = [errorCell];
|
||||
isEditing.value = [false];
|
||||
|
||||
console.error(
|
||||
"No sections to show because no project was found."
|
||||
);
|
||||
|
Reference in New Issue
Block a user