Skip to content

Commit 5b72bbb

Browse files
author
JelteMX
committed
Small maintenance (deepscan)
1 parent e7ebe6c commit 5b72bbb

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/DynamicTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class DynamicTable extends Component<DynamicTableContainerProps> {
308308
return;
309309
}
310310

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

313313
const entityName = _obj.getEntity();
314314
let object: mendix.lib.MxObject | null = null;

src/components/DynamicTreeTableContainer.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,10 @@ export class DynamicTreeTableContainer extends Component<DynamicTreeTableContain
189189
width: cellWidth,
190190
onCell: (record: TableRecord): TableEventListeners => {
191191
const empty =
192-
col &&
193192
col.dataIndex &&
194-
record &&
195193
typeof record[col.dataIndex] !== "undefined" &&
196194
record[col.dataIndex] === null;
197-
const colGuid = col && col.dataIndex;
195+
const colGuid = col.dataIndex;
198196

199197
const extraClass =
200198
col.key && record._classObj && record._classObj[col.key] ? record._classObj[col.key] : "";

tests/e2e/DynamicTable.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import homepage from "./pages/home.page";
22

3-
const badgeValue = "Badge";
3+
// const badgeValue = "Badge";
44

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

0 commit comments

Comments
 (0)