Skip to content

Commit

Permalink
Small maintenance (deepscan)
Browse files Browse the repository at this point in the history
  • Loading branch information
JelteMX committed Feb 3, 2020
1 parent e7ebe6c commit 5b72bbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/DynamicTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class DynamicTable extends Component<DynamicTableContainerProps> {
return;
}

this.debug("clickCell", `${_clickType} || ${_nodeType} || ${_obj ? _obj.getGuid() : null}`);
this.debug("clickCell", `${_clickType} || ${_nodeType} || ${_obj.getGuid()}`);

const entityName = _obj.getEntity();
let object: mendix.lib.MxObject | null = null;
Expand Down
4 changes: 1 addition & 3 deletions src/components/DynamicTreeTableContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,10 @@ export class DynamicTreeTableContainer extends Component<DynamicTreeTableContain
width: cellWidth,
onCell: (record: TableRecord): TableEventListeners => {
const empty =
col &&
col.dataIndex &&
record &&
typeof record[col.dataIndex] !== "undefined" &&
record[col.dataIndex] === null;
const colGuid = col && col.dataIndex;
const colGuid = col.dataIndex;

const extraClass =
col.key && record._classObj && record._classObj[col.key] ? record._classObj[col.key] : "";
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/DynamicTable.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import homepage from "./pages/home.page";

const badgeValue = "Badge";
// const badgeValue = "Badge";

describe("DynamicTable", () => {
it("should render a badge with a caption", () => {
Expand Down

0 comments on commit 5b72bbb

Please sign in to comment.