Skip to content

Commit

Permalink
Fix application opening section always appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmiliaMakelaVincit committed Nov 20, 2023
1 parent f711635 commit 5384121
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/plotSearch/components/PlotSearchPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ class PlotSearchPage extends Component<Props, State> {
isEditMode={isEditMode}
isSaveDisabled={isSaveClicked && !areFormsValid}
onCancel={this.cancelChanges}
onEdit={this.handleShowEditMode}
onEdit={() => this.handleShowEditMode(false)}
onSave={this.saveChanges}
showCommentButton={false}
showCopyButton={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default (flowRight(
connect((state: RootState) => ({
applicationAttributes: getAttributes(state),
plotSearch: getCurrentPlotSearch(state),
enabled: formValueSelector(FormNames.PLOT_SEARCH_APPLICATIONS_OPENING)(state, 'openingRecord') !== null,
enabled: formValueSelector(FormNames.PLOT_SEARCH_APPLICATIONS_OPENING)(state, 'opening_record') !== null,
})),
reduxForm({
form: FormNames.PLOT_SEARCH_APPLICATIONS_OPENING,
Expand Down

0 comments on commit 5384121

Please sign in to comment.