Skip to content

Commit fad6950

Browse files
jnmnoliveleger
authored andcommitted
Survive export_settings.fields being undefined
1 parent 8c3d71f commit fad6950

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsapp/js/components/projectDownloads/projectExportsCreator.es6

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export default class ProjectExportsCreator extends React.Component {
316316
// Select custom export toggle if not all rows are selected
317317
// but only if at least one is selected
318318
const customSelectionEnabled = (
319-
data.export_settings.fields.length !== 0 &&
319+
data.export_settings.fields?.length &&
320320
this.state.selectableRowsCount !== data.export_settings.fields.length
321321
);
322322

0 commit comments

Comments
 (0)