( plugin: TaskNotesPlugin, propertyIds: string[] )
| 58 | * Useful for displaying current selection |
| 59 | */ |
| 60 | export function getPropertyLabels( |
| 61 | plugin: TaskNotesPlugin, |
| 62 | propertyIds: string[] |
| 63 | ): string[] { |
| 64 | const availableProperties = getAvailableProperties(plugin); |
| 65 | return propertyIds |
| 66 | .map((id) => availableProperties.find((p) => p.id === id)?.label || id) |
| 67 | .filter(Boolean); |
| 68 | } |
no test coverage detected