Widget Devoir Finition
This commit is contained in:
parent
580799f9ee
commit
db361a92b8
@ -117,6 +117,13 @@ export function Duties() {
|
|||||||
if (leantimeResponse.status === 'fulfilled' && leantimeResponse.value.ok) {
|
if (leantimeResponse.status === 'fulfilled' && leantimeResponse.value.ok) {
|
||||||
const leantimeData = await leantimeResponse.value.json();
|
const leantimeData = await leantimeResponse.value.json();
|
||||||
if (Array.isArray(leantimeData)) {
|
if (Array.isArray(leantimeData)) {
|
||||||
|
// Log ALL tasks with their statuses to see what we receive
|
||||||
|
console.log('[Devoirs Widget] 📥 RAW Leantime tasks from API:', leantimeData.map((t: any) => ({
|
||||||
|
id: t.id,
|
||||||
|
headline: t.headline,
|
||||||
|
status: t.status,
|
||||||
|
statusType: typeof t.status,
|
||||||
|
})));
|
||||||
leantimeTasks = leantimeData;
|
leantimeTasks = leantimeData;
|
||||||
// Log tasks with status 5 to debug
|
// Log tasks with status 5 to debug
|
||||||
const doneTasks = leantimeData.filter((t: Task) => {
|
const doneTasks = leantimeData.filter((t: Task) => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user