Skip to content

Commit 6623369

Browse files
authored
fix: Option missing for Parse Config parameter to require master key (#2440)
1 parent 34b7f83 commit 6623369

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/dashboard/Data/Config/Config.react.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class Config extends TableView {
5858
}
5959

6060
renderExtras() {
61-
const { currentApp = {} } = this.context;
6261
let extras = null;
6362
if (this.state.modalOpen) {
6463
extras = (
@@ -69,7 +68,7 @@ class Config extends TableView {
6968
type={this.state.modalType}
7069
value={this.state.modalValue}
7170
masterKeyOnly={this.state.modalMasterKeyOnly}
72-
parseServerVersion={currentApp.serverInfo && currentApp.serverInfo.parseServerVersion} />
71+
parseServerVersion={this.context.serverInfo?.parseServerVersion} />
7372
);
7473
} else if (this.state.showDeleteParameterDialog) {
7574
extras = (
@@ -129,7 +128,7 @@ class Config extends TableView {
129128
}
130129
openModal()
131130
}
132-
131+
133132
let openDeleteParameterDialog = () => this.setState({
134133
showDeleteParameterDialog: true,
135134
modalParam: data.param

0 commit comments

Comments
 (0)