fix: codacy

This commit is contained in:
prssanna 2019-11-21 12:52:30 +05:30
parent 8cfbc0a51c
commit 6605b2e8d3

View file

@ -3,7 +3,6 @@
import GridRow from "./grid_row";
import GridPagination from './grid_pagination';
import { timingSafeEqual } from "crypto";
frappe.ui.form.get_open_grid_form = function() {
return $(".grid-row-open").data("grid_row");
@ -222,7 +221,7 @@ export default class Grid {
get_selected() {
return (this.grid_rows || []).map(row => {
return row.doc.__checked ? row.doc.name : null;
return row.doc.__checked ? row.doc.name : null;
}).filter(d => {
return d;
});
@ -232,7 +231,7 @@ export default class Grid {
return (this.grid_rows || []).map(row => {
return row.doc.__checked ? row.doc : null;
}).filter(d => {
return d;
return d;
});
}