MCPcopy Create free account
hub / github.com/callumalpass/tasknotes / getTaskListPropertyValue

Function getTaskListPropertyValue

src/bases/taskListGrouping.ts:58–70  ·  view source on GitHub ↗
(
	props: Record<string, unknown>,
	propertyId: string
)

Source from the content-addressed store, hash-verified

56}
57
58export function getTaskListPropertyValue(
59 props: Record<string, unknown>,
60 propertyId: string
61): unknown {
62 if (!propertyId) return null;
63
64 if (propertyId.startsWith("formula.")) {
65 return props[propertyId] ?? null;
66 }
67
68 const cleanPropertyId = propertyId.replace(/^(note\.|task\.|file\.)/, "");
69 return props[cleanPropertyId] ?? null;
70}
71
72export function stringifyTaskListGroupValue(value: unknown): string {
73 if (value === null || value === undefined) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected