Skip to content

Commit

Permalink
fix: Option missing for Parse Config parameter to require master key (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dblythy committed Jun 1, 2023
1 parent 34b7f83 commit 6623369
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/dashboard/Data/Config/Config.react.js
Expand Up @@ -58,7 +58,6 @@ class Config extends TableView {
}

renderExtras() {
const { currentApp = {} } = this.context;
let extras = null;
if (this.state.modalOpen) {
extras = (
Expand All @@ -69,7 +68,7 @@ class Config extends TableView {
type={this.state.modalType}
value={this.state.modalValue}
masterKeyOnly={this.state.modalMasterKeyOnly}
parseServerVersion={currentApp.serverInfo && currentApp.serverInfo.parseServerVersion} />
parseServerVersion={this.context.serverInfo?.parseServerVersion} />
);
} else if (this.state.showDeleteParameterDialog) {
extras = (
Expand Down Expand Up @@ -129,7 +128,7 @@ class Config extends TableView {
}
openModal()
}

let openDeleteParameterDialog = () => this.setState({
showDeleteParameterDialog: true,
modalParam: data.param
Expand Down

0 comments on commit 6623369

Please sign in to comment.