We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 965adc6 commit a81f1d8Copy full SHA for a81f1d8
1 file changed
src/Discovery/DiscoveryListView.tsx
@@ -112,6 +112,13 @@ const DiscoveryListView: React.FunctionComponent<Props> = (props: Props) => {
112
disabled = true;
113
}
114
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
122
return { disabled };
123
},
124
}}
0 commit comments