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,
|
||||
|
@ -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) => {
|
||||
|
Reference in New Issue
Block a user