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,

View File

@ -47,7 +47,7 @@ import { store } from "@/main.ts";
import { getProjectEntrepreneurs } from "@/services/Apis/Shared.ts";
import UserEntrepreneur from "@/ApiClasses/UserEntrepreneur.ts";
const dropdownRef = ref<HTMLElement | null>(null);
const dropdownRef = ref<HTMLElement | undefined>(undefined);
const props = defineProps<{
projectId: number;
@ -94,6 +94,10 @@ const fetchEntrepreneurs = (projectId: number, useMock = false) => {
if (useMock) {
fetchMockEntrepreneurs();
} else {
if (projectId == -1) {
console.error("No contact to show because no project was found.");
return;
}
getProjectEntrepreneurs(
projectId,
(response) => {