toeverything/AFFiNE · error
unsupported group type
Error message
unsupported group type
What it means
Warning logged in docs-view's group-header renderer when the computed groupType is neither 'tag' nor 'property' — an unexpected grouping value reached the list component. The header is not rendered (returns null); the faulting input is the unhandled `groupType` value.
Source
Thrown at packages/frontend/core/src/components/explorer/docs-view/docs-list.tsx:66
docCount={itemCount}
collapsed={!!collapsed}
/>
);
} else if (groupType === 'property') {
const property = allProperties.find(p => p.id === groupKey);
if (!property) return null;
const config = WorkspacePropertyTypes[property.type];
if (!config?.groupHeader) return null;
return (
<config.groupHeader
groupId={groupId}
docCount={itemCount}
collapsed={!!collapsed}
/>
);
} else {
console.warn('unsupported group type', groupType);
return null;
}
}, [allProperties, collapsed, groupId, groupKey, groupType, itemCount]);
if (!groupType) {
return null;
}
return header;
});
const ratios = [1.26, 1.304, 1.13, 1.391, 1.521];
const calcCardRatioById = (id: string) => {
if (!id) {
return ratios[0];
}
const code = id.charCodeAt(0);
return ratios[code % ratios.length];View on GitHub (pinned to b4c8548c09)
Solutions
- Use a supported group type in the docs view.
- Add a renderer for the new group type.
Defensive patterns
Strategy: validation
When it happens
Trigger: Triggered when the explorer docs list is grouped by a property type that has no groupHeader renderer, so the group header renders as null.
Common situations: Occurs when grouping the docs view by an unsupported or custom property type. Switch grouping to a supported property; headers for that group are hidden otherwise.
AI-assisted analysis of toeverything/AFFiNE@b4c8548c09 (2026-08-18).
Data as JSON: /api/errors/fef6a2acc4aad0e3.
Report an issue: GitHub.