Skip to content

Commit

Permalink
lint: code style
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Sep 1, 2023
1 parent 24ef068 commit 7e23258
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/components/datasets/Dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,10 @@ class Dataset extends Component {


componentDidMount() {
if (this.state.identifier) {
this.props.fetchDatasetSummary(this.state.identifier);
this.props.fetchDatasetDataTypesSummary(this.state.identifier);
const {identifier} = this.state;
if (identifier) {
this.props.fetchDatasetSummary(identifier);
this.props.fetchDatasetDataTypesSummary(identifier);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/datasets/DatasetDataTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const DatasetDataTypes = React.memo(
});
}, [dispatch, dataset]);

const showDatatypeSummary = useCallback((dataType) => {
const showDataTypeSummary = useCallback((dataType) => {
setSelectedDataType(dataType);
setDatatypeSummaryVisible(true);
}, []);
Expand All @@ -51,7 +51,7 @@ const DatasetDataTypes = React.memo(
key: "label",
render: (dt) =>
isPrivate ? (
<a onClick={() => showDatatypeSummary(dt)}>
<a onClick={() => showDataTypeSummary(dt)}>
{dt.label ?? NA_TEXT}
</a>
) : dt.label ?? NA_TEXT,
Expand Down

0 comments on commit 7e23258

Please sign in to comment.