Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/dashboard/Data/Browser/Browser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ class Browser extends DashboardView {
history.push(this.context.generatePath('browser'));
}, (error) => {
let msg = typeof error === 'string' ? error : error.message;
if (msg) {
msg = msg[0].toUpperCase() + msg.substr(1);
}
// if (msg) {
// msg = msg[0].toUpperCase() + msg.substr(1);
// }

this.showNote(msg, true);
});
Expand Down Expand Up @@ -338,9 +338,9 @@ class Browser extends DashboardView {
},
error => {
let msg = typeof error === "string" ? error : error.message;
if (msg) {
msg = msg[0].toUpperCase() + msg.substr(1);
}
// if (msg) {
// msg = msg[0].toUpperCase() + msg.substr(1);
// }
obj.set(attr, prev);
this.setState({ data: this.state.data });
this.showNote(msg, true);
Expand All @@ -353,14 +353,14 @@ class Browser extends DashboardView {
}
this.state.counts[obj.className] += 1;
}

this.setState(state);
},
error => {
let msg = typeof error === "string" ? error : error.message;
if (msg) {
msg = msg[0].toUpperCase() + msg.substr(1);
}
// if (msg) {
// msg = msg[0].toUpperCase() + msg.substr(1);
// }
this.showNote(msg, true);
}
);
Expand Down Expand Up @@ -516,7 +516,7 @@ class Browser extends DashboardView {
// Construct complex pagination query
let equalityQuery = queryFromFilters(source, this.state.filters);
let comp = this.state.data[this.state.data.length - 1].get(field);

if (sortDir === '-') {
query.lessThan(field, comp);
equalityQuery.lessThan('objectId', this.state.data[this.state.data.length - 1].id);
Expand Down Expand Up @@ -649,9 +649,9 @@ class Browser extends DashboardView {
this.setState(state);
}, (error) => {
let msg = typeof error === 'string' ? error : error.message;
if (msg) {
msg = msg[0].toUpperCase() + msg.substr(1);
}
// if (msg) {
// msg = msg[0].toUpperCase() + msg.substr(1);
// }

this.showNote(msg, true);
});
Expand Down