mirror of
https://github.com/gethomepage/homepage.git
synced 2026-09-29 23:41:16 -07:00
Fix vikunja map function
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
import { asJson } from "utils/proxy/api-helpers";
|
import { asJson } from "utils/proxy/api-helpers";
|
||||||
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
import credentialedProxyHandler from "utils/proxy/handlers/credentialed";
|
||||||
|
|
||||||
const map = asJson(data).map((task) => ({
|
const map = (data) =>
|
||||||
id: task.id,
|
asJson(data).map((task) => ({
|
||||||
title: task.title,
|
id: task.id,
|
||||||
priority: task.priority,
|
title: task.title,
|
||||||
dueDate: task.due_date,
|
priority: task.priority,
|
||||||
dueDateIsDefault: task.due_date === "0001-01-01T00:00:00Z",
|
dueDate: task.due_date,
|
||||||
inProgress: task.percent_done > 0 && task.percent_done < 1,
|
dueDateIsDefault: task.due_date === "0001-01-01T00:00:00Z",
|
||||||
}));
|
inProgress: task.percent_done > 0 && task.percent_done < 1,
|
||||||
|
}));
|
||||||
|
|
||||||
const widget = {
|
const widget = {
|
||||||
api: `{url}/api/v1/{endpoint}`,
|
api: `{url}/api/v1/{endpoint}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user