octobercms/october · error · Error
onInspectableGetOptions must return an array
Error message
onInspectableGetOptions must return an array
What it means
Error "onInspectableGetOptions must return an array" thrown in octobercms/october.
Source
Thrown at modules/dashboard/assets/js/classes/inspector-configurator.js:320
]
});
}
async requestOptions(obj, parentObj, property, cacheKey, cachePropertyNames) {
var data = Object.assign({}, $.oc.vueUtils.getCleanObject(parentObj), $.oc.vueUtils.getCleanObject(obj));
data.inspectorProperty = property;
const responseData = await this.dataLoader.requestOptions(
this.$el,
null,
this.store.getEventHandler('onInspectableGetOptions'),
data,
cacheKey,
cachePropertyNames
);
if (!Array.isArray(responseData.options)) {
throw new Error('onInspectableGetOptions must return an array');
}
const result = {};
responseData.options.forEach(item => {
result[item.value] = item.title;
})
return result;
}
async formatFilterItemTitle(item, obj, parentObj) {
const options = await this.requestOptions(
obj,
parentObj,
'filter_attribute',
this.filterAttributeCacheKey,
this.filterAttributeCachePropertyNames
);View on GitHub (pinned to b608633a7e)
When it happens
Trigger: Thrown at modules/dashboard/assets/js/classes/inspector-configurator.js:320 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/64497bc0555cd1c2.
Report an issue: GitHub.