mirror of
https://github.com/directus/directus.git
synced 2026-02-15 11:35:12 -05:00
Fix conditions crash when custom options component is used (#14233)
Fixes #14189
This commit is contained in:
@@ -100,6 +100,9 @@ export default defineComponent({
|
||||
const selectedInterface = getInterface(interfaceID.value);
|
||||
if (!selectedInterface || !selectedInterface.options) return [];
|
||||
|
||||
// Indicates a custom vue component is used for the interface options
|
||||
if ('render' in selectedInterface.options) return [];
|
||||
|
||||
let optionsObjectOrArray;
|
||||
|
||||
if (typeof selectedInterface.options === 'function') {
|
||||
@@ -132,6 +135,7 @@ export default defineComponent({
|
||||
} else {
|
||||
optionsObjectOrArray = selectedInterface.options;
|
||||
}
|
||||
|
||||
const optionsArray = Array.isArray(optionsObjectOrArray)
|
||||
? optionsObjectOrArray
|
||||
: [...optionsObjectOrArray.standard, ...optionsObjectOrArray.advanced];
|
||||
|
||||
Reference in New Issue
Block a user