Skip to content

Commit ef01619

Browse files
Merge pull request #135 from terminusdb/policyExplode
fixing exploding doc link for choice docs
2 parents 9086671 + 7f9ab1a commit ef01619

File tree

1 file changed

+2
-2
lines changed
  • packages/tdb-documents-ui/src/documentTypeFrames

1 file changed

+2
-2
lines changed

packages/tdb-documents-ui/src/documentTypeFrames/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export function displaySearchComponent(props, onSelect, linked, mode) {
160160

161161
// display only anyof properties here
162162
// schema appears twice in UI so we display empty div when props.schema has anyOf
163-
if(props.schema.hasOwnProperty("anyOf")) return <div/>
163+
if(props.hasOwnProperty("schema") && props.schema.hasOwnProperty("anyOf")) return <div/>
164164

165165

166166
const Selected = ({selected, mode}) => {
@@ -193,7 +193,7 @@ export function displaySearchComponent(props, onSelect, linked, mode) {
193193
</div>
194194
}
195195

196-
console.log("props", props, onSelect, linked, mode)
196+
//console.log("props", props, onSelect, linked, mode)
197197

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

0 commit comments

Comments
 (0)