Skip to content

Commit e832ce5

Browse files
committed
Fix bool casting changes
1 parent cee0719 commit e832ce5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

static/menus.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class MenuHost extends React.Component {
7474

7575
render() {
7676
let menu = null;
77-
if (!this.state.menuOpen) {
77+
if (this.state.menuOpen) {
7878
const onClose = () => this.setState({ menuOpen: null});
7979
menu = React.createElement(this.menuFn, { location: this.state.menuOpen, onClose: onClose, target: this.state.menuOpen.target, callbacks: this.props.callbacks });
8080
}

static/srcView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class SourceView extends React.Component {
160160
});
161161

162162
let refMenu = null;
163-
if (!this.state.refMenu) {
163+
if (this.state.refMenu) {
164164
const onClose = () => {
165165
return this.setState({ refMenu: null });
166166
};

static/utils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ export function request(urlStr, success, errStr, app) {
8080
console.log(errStr);
8181
console.log("error: " + errorThrown + "; status: " + status);
8282

83-
if (!app) {
83+
if (app) {
8484
app.showError();
8585
}
8686
});
8787

88-
if (!app) {
88+
if (app) {
8989
app.showLoading();
9090
}
9191
}

0 commit comments

Comments
 (0)