Skip to content

Commit a81f1d8

Browse files
committed
Fix checkboxes on Discovery
1 parent 965adc6 commit a81f1d8

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Discovery/DiscoveryListView.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
112112
disabled = true;
113113
}
114114
}
115+
116+
const exportToDataLibraryConfig = props.config.features.exportToDataLibrary;
117+
const { enabled, dataObjectFieldName } = exportToDataLibraryConfig;
118+
if (enabled && record[dataObjectFieldName] && record[dataObjectFieldName].length > 0) {
119+
disabled = false;
120+
}
121+
115122
return { disabled };
116123
},
117124
}}

0 commit comments

Comments
 (0)