Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/tdb-documents-ui/src/documentTypeFrames/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div/>
if(props.hasOwnProperty("schema") && props.schema.hasOwnProperty("anyOf")) return <div/>


const Selected = ({selected, mode}) => {
Expand Down Expand Up @@ -193,7 +193,7 @@ export function displaySearchComponent(props, onSelect, linked, mode) {
</div>
}

console.log("props", props, onSelect, linked, mode)
//console.log("props", props, onSelect, linked, mode)

return <Card className="w-100 bg-secondary border border-dark">
<DocumentSearch display={onSelect}
Expand Down