( props: Record<string, unknown>, propertyId: string )
| 56 | } |
| 57 | |
| 58 | export 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 | |
| 72 | export function stringifyTaskListGroupValue(value: unknown): string { |
| 73 | if (value === null || value === undefined) { |
no outgoing calls
no test coverage detected