Skip to content

Commit 8bf35dd

Browse files
iveyMarklogicSanjeevani19
authored andcommitted
DHFPROD-9662: Disable Structured properties as a foreign key on the graph
1 parent 8d45fd4 commit 8bf35dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

marklogic-data-hub-central/ui/src/components/modeling/graph-view/relationship-modal/add-edit-relationship.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ const AddEditRelationship: React.FC<Props> = ({
683683
return flatArray;
684684
};
685685

686-
const foreignKeyOptions = targetNodeJoinProperties.length > 0 ? targetNodeJoinProperties.map((prop, index) => ({value: prop.value, label: prop.label, isDisabled: prop.disabled})) : [];
686+
const foreignKeyOptions = targetNodeJoinProperties.length > 0 ? targetNodeJoinProperties.map((prop, index) => ({value: prop.value, label: prop.label, isDisabled: prop.hasOwnProperty("children") || prop.array})) : [];
687687
const sourcePropertyOptions = sourceNodeJoinProperties.length > 0 ? flattenSourceArray([...sourceNodeJoinProperties], []) : [];
688688
const listIdent = sourcePropertyOptions.reduce((acc, element) => {
689689
if (!element.key) {

0 commit comments

Comments
 (0)