fix/feat: Now the projectId is correctly fetched yet we cant test shit since the db is empty
Some checks failed
Format / formatting (push) Successful in 6s
Build / build (push) Successful in 41s
CI / build (push) Failing after 12s
Format / formatting (pull_request) Successful in 6s

This commit is contained in:
2025-04-29 23:18:26 +02:00
parent 5130c00796
commit 92696c3e16
4 changed files with 81 additions and 13 deletions

View File

@ -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,