fix/feat: Now the projectId is correctly fetched yet we cant test shit since the db is empty
This commit is contained in:
@ -188,6 +188,12 @@ const fetchData = async (
|
||||
const responseData = await mockFetch(projectId, title, date);
|
||||
handleFetchSuccess(responseData);
|
||||
} else {
|
||||
if (projectId == -1) {
|
||||
console.error(
|
||||
"No sections to show because no project was found."
|
||||
);
|
||||
return;
|
||||
}
|
||||
await new Promise<void>((resolve, reject) => {
|
||||
getSectionCellsByDate(
|
||||
projectId,
|
||||
|
Reference in New Issue
Block a user