octobercms/october · error · Error
Tabs must have the "key" property
Error message
Tabs must have the "key" property
What it means
Configuration error in the tabs component's getTabId: a tab object in the tabs list lacks the required key property. Keys are the identity used for tab IDs, active-tab tracking and lookups, so an entry without one is treated as a malformed tabs configuration.
Solutions
- Give every tab entry a unique key property
- Verify tabs built dynamically (e.g. from editor tabs) always carry their key attribute
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at modules/backend/vuecomponents/tabs/assets/js/tabs.js:191 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of octobercms/october@b608633a7e (2026-08-21).
Data as JSON: /api/errors/bcd6f98e9b542218.
Report an issue: GitHub.
Appendix: source
Thrown at modules/backend/vuecomponents/tabs/assets/js/tabs.js:191
getTooltipText: function getTooltipText(tab) {
if (!this.tooltipsEnabled) {
return null;
}
return tab.label;
},
getTabIndex: function getTabIndex(tabKey) {
for (var index = 0; index < this.tabs.length; index++) {
if (this.tabs[index].key == tabKey) {
return index;
}
}
},
getTabId: function getTabId(tab, suffix) {
if (tab.key === undefined) {
throw new Error('Tabs must have the "key" property');
}
if (!suffix) {
suffix = '';
}
if (this.tabIds[tab.key] === undefined) {
this.tabIds[tab.key] = $.oc.domIdManager.generate('tab');
}
return this.tabIds[tab.key] + '-' + suffix;
},
getTabUniqueKey: function getTabUniqueKey(tab) {
if (tab.systemData && tab.systemData.uniqueKey) {
return tab.systemData.uniqueKey;
}
View on GitHub (pinned to b608633a7e)