diff --git a/packages/tdb-documents-ui/src/documentTypeFrames/helpers.js b/packages/tdb-documents-ui/src/documentTypeFrames/helpers.js index b0ca7015..81665603 100644 --- a/packages/tdb-documents-ui/src/documentTypeFrames/helpers.js +++ b/packages/tdb-documents-ui/src/documentTypeFrames/helpers.js @@ -160,7 +160,7 @@ export function displaySearchComponent(props, onSelect, linked, mode) { // display only anyof properties here // schema appears twice in UI so we display empty div when props.schema has anyOf - if(props.schema.hasOwnProperty("anyOf")) return
+ if(props.hasOwnProperty("schema") && props.schema.hasOwnProperty("anyOf")) return
const Selected = ({selected, mode}) => { @@ -193,7 +193,7 @@ export function displaySearchComponent(props, onSelect, linked, mode) {
} - console.log("props", props, onSelect, linked, mode) + //console.log("props", props, onSelect, linked, mode) return