Build, Test, and Push CFDM Docker Image / test (push) Failing after 51s
Build, Test, and Push CFDM Docker Image / build-and-push (push) Has been skipped
Build, Test, and Push CFDM Docker Image / update-wiki (push) Has been skipped
Build, Test, and Push CFDM Docker Image / create-release (push) Has been skipped
12 lines
341 B
TypeScript
12 lines
341 B
TypeScript
export const UNGROUPED_COLUMN_ID = 'ungrouped'
|
|
|
|
export function groupColumnId(groupId: number) {
|
|
return `group-${groupId}`
|
|
}
|
|
|
|
export function parseGroupColumnId(columnId: string): number | null {
|
|
if (columnId === UNGROUPED_COLUMN_ID) return null
|
|
const match = columnId.match(/^group-(\d+)$/)
|
|
return match ? Number(match[1]) : null
|
|
}
|